Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

itinerary planner #1514

Merged
merged 11 commits into from
Dec 12, 2024
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions cookbook/examples/agents/03_itenary_planner.py
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix the spelling of itinerary throughout the file

Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from phi.model.openai import OpenAIChat
from phi.agent import Agent
from phi.tools.exa import ExaTools
from phi.tools.apify import ApifyTools

itenary_agent = Agent(
name="GlobeHopper",
model=OpenAIChat(id="gpt-4o"),
tools=[ExaTools(), ApifyTools()],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need both the tools?

show_tool_calls=True,
markdown=True,
debug_mode=True,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can remove show_tool_calls and debug_mode

description="You are an itinerary planner agent. Your role is to assist users in creating detailed and personalized travel plans.",
instructions=[
"Crawl the website for itenary planning https://www.tripadvisor.in/Trips or https://www.makemytrip.com/",
"Make a concise itenary with flight options, residence options, tourist places, and the estimated budget",
"Look for user inputs and priortise it if they have specific demands",
"Do not give any numbers for reservations"
],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better instruction needed

)

itenary_agent.print_response("I want to go to Bombay,with four members please make an itenary", stream=True)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prompt needs to be improved. It needs to be a little more descriptive


Loading