how ai_travel_agent work? #36

Closed
opened 2025-11-06 14:31:42 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @david101-hunter on GitHub (Feb 27, 2025).

This code is taken from travel_agent

    if st.button("Generate Itinerary"):
        with st.spinner("Processing..."):
            # Get the response from the assistant
            response = planner.run(f"{destination} for {num_days} days", stream=False)
            st.write(response.content)

In my opinion, researcher & planner indeed don't communicate each other.

I have read readme from agno github

team=[web_agent, finance_agent]

I can use team, right? if yes, how code changes?

Thanks for amazing project your!

Originally created by @david101-hunter on GitHub (Feb 27, 2025). This code is taken from [travel_agent](https://github.com/Shubhamsaboo/awesome-llm-apps/blob/1fb633ce37ad77ce41317b10cbf6ee112de2e8e5/ai_agent_tutorials/ai_travel_agent/travel_agent.py) ``` if st.button("Generate Itinerary"): with st.spinner("Processing..."): # Get the response from the assistant response = planner.run(f"{destination} for {num_days} days", stream=False) st.write(response.content) ``` In my opinion, researcher & planner indeed don't communicate each other. I have read readme from [agno github](https://github.com/agno-agi/agno) ``` team=[web_agent, finance_agent] ``` I can use `team`, right? if yes, how code changes? Thanks for amazing project your!
Author
Owner

@Madhuvod commented on GitHub (Mar 17, 2025):

hey @david101-hunter , you are absolutely spot on! thanks for spotting that inconsistency.

fixed the error where the response of researcher is now passed to planer agent here - https://github.com/Shubhamsaboo/awesome-llm-apps/pull/147

else you can even make a team of both of them as you mentioned and run the code

the pr will be merged into the codebase soon, look into the pr until then, Thanks!

@Madhuvod commented on GitHub (Mar 17, 2025): hey @david101-hunter , you are absolutely spot on! thanks for spotting that inconsistency. fixed the error where the response of researcher is now passed to planer agent here - https://github.com/Shubhamsaboo/awesome-llm-apps/pull/147 else you can even make a team of both of them as you mentioned and run the code the pr will be merged into the codebase soon, look into the pr until then, Thanks!
Author
Owner

@david101-hunter commented on GitHub (Mar 18, 2025):

thanks for your amazing work!

@david101-hunter commented on GitHub (Mar 18, 2025): thanks for your amazing work!
Author
Owner

@Shubhamsaboo commented on GitHub (Mar 18, 2025):

Thank you both!!

@Shubhamsaboo commented on GitHub (Mar 18, 2025): Thank you both!!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-llm-apps#36