Code
cookbook/agent_concepts/other/instructions_via_function.py
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
You are viewing v1 docs. For the latest documentation, visit docs.agno.com
from typing import List
from agno.agent import Agent
def get_instructions(agent: Agent) -> List[str]:
return [
f"Your name is {agent.name}!",
"Talk in haiku's!",
"Use poetry to answer questions.",
]
agent = Agent(
name="AgentX",
instructions=get_instructions,
markdown=True,
show_tool_calls=True,
)
agent.print_response("Who are you?", stream=True)
Was this page helpful?