Process Conversation • AI Agent SDK
process_conversation: Process a conversation to extract learnings automatically.
process_conversation
Method
</div>
This is a method of the LearnManagerProtocol class in the protocols module.
Process a conversation to extract learnings automatically.
Signature
def process_conversation(messages: List[Dict[str, Any]], llm: Optional[str]) -> Dict[str, Any]Parameters
ParamField
ListConversation messages
ParamField
Optional[str]Optional LLM model to use for extraction
Returns
ResponseField
Dict[str, Any]Dictionary with extracted learnings
Source
View on GitHubpraisonaiagents/memory/learn/protocols.py at line 243