llm_chat
llm_chat: Basic Chat Interaction
llm_chat: Basic Chat Interactiondef llm_chat(
agent_name: str,
messages: List[Dict[str, Any]],
base_url: str = aios_kernel_url,
llms: List[Dict[str, Any]] = None
) -> LLMResponse# Basic chat interaction
response = llm_chat(
"my_assistant",
messages=[
{"role": "system", "content": "You are a helpful AI assistant."},
{"role": "user", "content": "What are the main features of Python?"}
]
)
print(response["response"]["response_message"])Last updated