pub async fn ai_task_request_decoded<T: DeserializeOwned>(
msg_context: String,
agent_position: &str,
agent_operation: &str,
function_pass: for<'a> fn(_: &'a str) -> &'static str,
) -> T
Expand description
Sends a request to the AI service and decodes the response into a specific type.
ยงType Parameters
T
: The type that the response will be deserialized into. It must implementDeserializeOwned
.