from echo import LLMConfigllm_config = LLMConfig( provider="openai", # "openai", "anthropic", or "gemini" model="gpt-4o-mini", # Model identifier temperature=0.2, # 0.0-1.0, lower = more focused max_tokens=2000, # Max response length max_iterations=5, # Max tool use iterations)
Combines PersonaConfig + TaskConfig to form the system prompt:
Copy
Ask AI
from echo import AgentConfig, PersonaConfig, TaskConfigagent_config = AgentConfig( persona=PersonaConfig( role="Medical Assistant", # Agent's identity goal="Help with medical queries", # What agent tries to achieve backstory="A helpful medical AI", # Background context ), task=TaskConfig( description="Answer health questions using available tools", expected_output="Accurate, helpful medical information", ),)
Generated System Prompt:
Copy
Ask AI
You are a Medical Assistant.Your goal is: Help with medical queriesBackground: A helpful medical AITask: Answer health questions using available toolsExpected output: Accurate, helpful medical information