cognee/examples/agents-integrations/agno-agents/app.py
2025-12-18 13:53:34 +01:00

25 lines
No EOL
699 B
Python

from agno.agent import Agent
from agno.models.openai import OpenAIChat
from tools import CogneeTools
from constants import INSTRUCTIONS, MY_PREFERENCE
from dotenv import load_dotenv
load_dotenv()
def main():
cognee_tools = CogneeTools()
llm = OpenAIChat(id="gpt-5-mini")
agent = Agent(
model=llm,
tools=[cognee_tools],
description="You are my executive assistant who plans my itinerary based on my preference",
instructions=INSTRUCTIONS
)
agent.print_response(MY_PREFERENCE, stream=True)
print("\n")
agent.print_response("I am visiting Rome, give me restaurants list to stop by", stream=True)
if __name__ == "__main__":
main()