Creating your first agent¶
If you're looking to build your first agent using a few simple tools, this is a great place to start. In this cookbook example, we will create and run a simple agent that has access to a few web tools. This can be easily expanded to add more advanced tools and features. 🚀
Install Dependencies¶
any-agent uses the python asyncio module to support async functionality. When running in Jupyter notebooks, this means we need to enable the use of nested event loops. We'll install any-agent and enable this below using nest_asyncio.
%pip install 'any-agent'
import nest_asyncio
nest_asyncio.apply()
/home/daavoo/any-agent/.venv/bin/python: No module named pip Note: you may need to restart the kernel to use updated packages.
Configure the Agent¶
Now it's time to configure the agent! At this stage you have a few choices:
Pick the framework¶
We support a variety of underlying agent frameworks (OpenAI, Smolagents, Langchain, TinyAgent, etc), which all have their own particular agentic AI implementations. For this tutorial's simple use case, any of the frameworks should work just fine, but any-agent makes it easy to try out a different framework later, if we so choose. For this example, we will use the TinyAgent framework.
Pick an LLM¶
Regardless of which agent framework you choose, each framework supports LiteLLM, which is a proxy that allows us to use whichever LLM inside the framework, hosted on by any provider. For example, we could use a local model via llama.cpp or llamafile, a google hosted gemini model, or a AWS bedrock hosted Llama model. For this example, let's use Mistral AI's mistral/mistral-small-latest LLM.
Pick which tools to use¶
In this tutorial, we will provide the agent with access to web searches and web page visits. In later examples we will show more advanced tool usage like Model Context Protocol (MCP) tool use or inter-agent communication using Agent-2-Agent (A2A).
import os
from getpass import getpass
for key in ("MISTRAL_API_KEY", "TAVILY_API_KEY"):
if key not in os.environ:
print(f"{key} not found in environment!")
api_key = getpass(f"Please enter your {key}: ")
os.environ[key] = api_key
print(f"{key} set for this session!")
else:
print(f"{key} found in environment.")
MISTRAL_API_KEY found in environment. TAVILY_API_KEY found in environment.
We will use Tavily web search. For it, you will need a (free) Tavily API key. Alternatively, you can import and use search_web
(Duck Duck Go Search).
from any_agent import AgentConfig, AnyAgent
from any_agent.tools import search_tavily
agent = AnyAgent.create(
"tinyagent", # See all options in https://mozilla-ai.github.io/any-agent/
AgentConfig(model_id="mistral/mistral-small-latest", tools=[search_tavily]),
)
/home/daavoo/any-agent/.venv/lib/python3.13/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html from .autonotebook import tqdm as notebook_tqdm
Run the Agent¶
Now we've configured our agent, so it's time to run it! Let's give it a simple task: find 5 trending new TV shows that were released recently.
agent_trace = agent.run(
"What are 5 tv shows that are trending in 2025? Check a few sites, and provide the name of the show, the exact release date, the genre, and a brief description of the show."
)
╭──────────────────────────────────── CALL_LLM: mistral/mistral-small-latest ─────────────────────────────────────╮ │ ╭─ INPUT ─────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ [ │ │ │ │ { │ │ │ │ "role": "system", │ │ │ │ "content": "You are an agent that uses tools (whenever they are available) to answer the user's query.\ │ │ │ │ }, │ │ │ │ { │ │ │ │ "role": "user", │ │ │ │ "content": "What are 5 tv shows that are trending in 2025? Check a few sites, and provide the name of t │ │ │ │ } │ │ │ │ ] │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ ╭─ OUTPUT ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ [ │ │ │ │ { │ │ │ │ "tool.name": "search_tavily", │ │ │ │ "tool.args": "{\"query\": \"trending tv shows 2025\"}" │ │ │ │ } │ │ │ │ ] │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ ╭─ USAGE ─────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ { │ │ │ │ "input_tokens": 359, │ │ │ │ "output_tokens": 21, │ │ │ │ "input_cost": 3.59e-05, │ │ │ │ "output_cost": 6.3e-06 │ │ │ │ } │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭────────────────────────────────────────── EXECUTE_TOOL: search_tavily ──────────────────────────────────────────╮ │ ╭─ Input ─────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ { │ │ │ │ "query": "trending tv shows 2025" │ │ │ │ } │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ ╭─ OUTPUT ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ 38 Of The Most Anticipated New & Returning TV Shows Of 2025 38 Of The Most Anticipated New & Returning TV │ │ │ │ Shows Of 2025 ; 'Alien: Earth', FX – August 12. Alien. Photo : FX ; 'Wednesday' Season 2, Netflix – │ │ │ │ │ │ │ │ The 25 new TV shows premiering in fall 2025 you can't miss - Polygon The 20 most anticipated TV shows of │ │ │ │ 2025 ; 10 Solar Opposites season 6 (Oct. 13 on Hulu) ; 9 Ghosts season 5 (Oct. 16 on CBS) ; 8 Talamasca: │ │ │ │ The │ │ │ │ │ │ │ │ Best TV Shows of 2025: New Series to Watch Now - Rotten Tomatoes Critics Consensus: Platonic is easy to │ │ │ │ love in a sophomore season that continues to expertly leverage Rose Byrne and Seth Rogen's explosively │ │ │ │ charming chemistry. Critics Consensus: Growing more confident in its execution while putting its best │ │ │ │ elements front and center, The Wheel of Time's third season is its best yet. Critics Consensus: Investing │ │ │ │ startling conviction and gravity into the Star Wars sandbox, Andor's superb second season lights a fire of │ │ │ │ rebellion that heats up the screen. Critics Consensus: Mo is still full of mirth even as world events weigh │ │ │ │ heavily on its shoulders in this second and final season, carrying the load with characteristic grace. ## │ │ │ │ The Last of Us: Season 2 91% 37% │ │ │ │ │ │ │ │ The Best Reviewed TV Shows of 2025, According to Metacritic These are the most critically adored TV series │ │ │ │ of the year so far · Asura Season 1 (Netflix) · Rogue Heroes Season 2 (MGM+) · Severance Season 2 ( │ │ │ │ │ │ │ │ 2025: Year's Best TV Shows - IMDb Nathan Fielder gives people a chance to rehearse for their own lives in a │ │ │ │ world where nothing ever works out as expected. In six live installments, John Mulaney explores Los Angeles │ │ │ │ during a week when pretty much every funny person is in town. Low-level FBI agent Peter Sutherland works in │ │ │ │ the basement of the White House manning a phone that never rings - until the night it does, propelling him │ │ │ │ into a conspiracy that leads all the way to the Oval Office. It follows the gritty and adventurous │ │ │ │ exploration of the birth of the American West, the violent collisions of cults, religion, and men and women │ │ │ │ fighting for control of the new world. │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭──────────────────────────────────── CALL_LLM: mistral/mistral-small-latest ─────────────────────────────────────╮ │ ╭─ OUTPUT ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ [ │ │ │ │ { │ │ │ │ "tool.name": "search_tavily", │ │ │ │ "tool.args": "{\"query\": \"Platonic season 2 release date\"}" │ │ │ │ }, │ │ │ │ { │ │ │ │ "tool.name": "search_tavily", │ │ │ │ "tool.args": "{\"query\": \"The Wheel of Time season 3 release date\"}" │ │ │ │ }, │ │ │ │ { │ │ │ │ "tool.name": "search_tavily", │ │ │ │ "tool.args": "{\"query\": \"Andor season 2 release date\"}" │ │ │ │ }, │ │ │ │ { │ │ │ │ "tool.name": "search_tavily", │ │ │ │ "tool.args": "{\"query\": \"Mo season 2 release date\"}" │ │ │ │ }, │ │ │ │ { │ │ │ │ "tool.name": "search_tavily", │ │ │ │ "tool.args": "{\"query\": \"The Last of Us season 2 release date\"}" │ │ │ │ } │ │ │ │ ] │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ ╭─ USAGE ─────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ { │ │ │ │ "input_tokens": 1060, │ │ │ │ "output_tokens": 95, │ │ │ │ "input_cost": 0.000106, │ │ │ │ "output_cost": 2.8499999999999998e-05 │ │ │ │ } │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭────────────────────────────────────────── EXECUTE_TOOL: search_tavily ──────────────────────────────────────────╮ │ ╭─ Input ─────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ { │ │ │ │ "query": "Platonic season 2 release date" │ │ │ │ } │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ ╭─ OUTPUT ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ Platonic season 2 episode guide and complete release schedule Platonic Season 2 is soon to be released on │ │ │ │ August 6, 2025, and the series is all set to take the viewers again on the nostalgic ride of Sylvia │ │ │ │ │ │ │ │ Platonic - Apple TV+ Press Season 2 Release Date: August 6, 2025 Co-created, directed and co-written by │ │ │ │ Nick Stoller and Francesca Delbanco, “Platonic” season two picks up with everyone' │ │ │ │ │ │ │ │ Apple TV+ drops season 2 of 'Platonic' after two-year hiatus - AL.com The hit comedy series Platonic │ │ │ │ returns to Apple TV+ with its season two premiere Wednesday, Aug. 6. The Apple TV+ original series was │ │ │ │ first │ │ │ │ │ │ │ │ 'Platonic' Sets Season 2 Release Date At Apple; Teaser & First Photos The 10-episode sophomore season will │ │ │ │ premiere globally on Wednesday, August 6 with the first two episodes, followed by one episode weekly until │ │ │ │ October 1. │ │ │ │ │ │ │ │ Platonic Season 2 — Date Announce | August 6 on Apple TV+ - Reddit Platonic Season 2 — Date Announce | │ │ │ │ August 6 on Apple TV+ · Comments Section · Community Info Section · More posts you may like. │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭────────────────────────────────────────── EXECUTE_TOOL: search_tavily ──────────────────────────────────────────╮ │ ╭─ Input ─────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ { │ │ │ │ "query": "The Wheel of Time season 3 release date" │ │ │ │ } │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ ╭─ OUTPUT ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ The Wheel of Time Season 3 Episode Release Dates and Titles The third season of The Wheel of Time, based on │ │ │ │ Robert Jordan's fantasy book series, will premiere on Prime Video on March 13, 2025 . │ │ │ │ │ │ │ │ Season 3 – The Wheel of Time - Rotten Tomatoes Network: Prime Video. Rating: TV-MA (V|S|L). Genre: Fantasy │ │ │ │ , Action , Adventure. Original Language: English. Release Date: Mar 13, 2025. Advertise With Us. │ │ │ │ │ │ │ │ The Wheel of Time Season 3: Release Date, Cast, and Everything to ... The Wheel of Time returns to Prime │ │ │ │ Video on March 13, 2025 with a three-episode premiere. After that, the remaining five episodes will land on │ │ │ │ the streaming │ │ │ │ │ │ │ │ The Wheel of Time Season 3 Episode Release Schedule - TheWrap When does “The Wheel of Time” Season 3 come │ │ │ │ out? The third season of Prime Video's “The Wheel of Time” premieres on Thursday, March 13. │ │ │ │ │ │ │ │ 'The Wheel of Time' Season 3: Full Episode Release Schedule - ELLE │ │ │ │ │ │ │ │ ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ │ │ │ │ ┃ When to Watch New Episodes of The Wheel of Time Season 3 Wheel of Time Season 3 Everything You Need To ┃ │ │ │ │ ┃ Know... Wheel of Time Season 3 Everything You Need To Know ## How many episodes are in The Wheel of ┃ │ │ │ │ ┃ Time Season 3? Season 3 consists of eight episodes, continuing the show’s established format from its ┃ │ │ │ │ ┃ previous season. ## When do new episodes of The Wheel of Time drop? * Episode 5, “Tel’aran’rhiod”: ┃ │ │ │ │ ┃ March 27 Watch Now * Episode 6, “The Shadow in the Night ”: April 3 Watch Now ## Where can I watch ┃ │ │ │ │ ┃ previous seasons? All episodes of The Wheel of Time seasons 1 and 2 are now streaming on Prime Video. ┃ │ │ │ │ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭────────────────────────────────────────── EXECUTE_TOOL: search_tavily ──────────────────────────────────────────╮ │ ╭─ Input ─────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ { │ │ │ │ "query": "Andor season 2 release date" │ │ │ │ } │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ ╭─ OUTPUT ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ 'Andor' Season 2 Gets Official April 2025 Release Date Andor Season 2 Release Date Confirmed for April 22, │ │ │ │ 2025 on Disney+! What to Expect From the Final Chapter · r/StarWars - Andor Season 2 │ │ │ │ │ │ │ │ 'Andor' Season 2 Release Schedule - Esquire Andor season 2 will begin streaming on Disney+ on April 22 at │ │ │ │ 9:00 P.M. ET. Unlike the first season, which has also been released on Hulu and │ │ │ │ │ │ │ │ 'Andor' Season 2 Release Schedule, Writers, & Directors ... Andor Season 2 premieres on April 22nd with the │ │ │ │ first three episodes! Eric Eilersen is a Senior Writer at Youtini and co-host of The Youtini Show. │ │ │ │ │ │ │ │ 'Andor' Season 2: Episode schedule, release time, where ... Three new episodes of "Andor" Season 2 release │ │ │ │ every Tuesday at 9 pm ET. Episodes will be released through May 13. │ │ │ │ │ │ │ │ Andor | Season 2 Trailer | Streaming April 22 on Disney+ Andor | Season 2 Trailer | Streaming April 22 on │ │ │ │ Disney+ Star Wars 4210000 subscribers 157030 likes 7438892 views 24 Feb 2025 The critically acclaimed │ │ │ │ series returns. │ │ │ │ │ │ │ │ Watch the new trailer for season 2 of Andor, streaming April 22 on Disney+. │ │ │ │ │ │ │ │ ► SUBSCRIBE to the channel to get notified when new Star Wars videos are posted: │ │ │ │ https://www.youtube.com/starwars?sub_confirmation=1 │ │ │ │ │ │ │ │ ► SUBSCRIBE to Disney+ to stream all of your favorite Star Wars shows and movies: │ │ │ │ https://www.disneyplus.com/ │ │ │ │ │ │ │ │ Follow on social media to get the latest news and announcements from Star Wars │ │ │ │ │ │ │ │ TikTok: https://www.tiktok.com/@starwars Instagram: https://www.instagram.com/starwars/ Facebook: │ │ │ │ https://www.facebook.com/StarWars X: https://x.com/starwars Website: http://www.starwars.com │ │ │ │ │ │ │ │ Experience more stories by subscribing: │ │ │ │ │ │ │ │ / @Disney / @Lucasfilm / @marvel / @pixar / @disneyplus │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭────────────────────────────────────────── EXECUTE_TOOL: search_tavily ──────────────────────────────────────────╮ │ ╭─ Input ─────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ { │ │ │ │ "query": "Mo season 2 release date" │ │ │ │ } │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ ╭─ OUTPUT ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ "Mo" Season Two Reveals First Look, Premiere Date On ... Mo has announced its January 30th, 2025 season two │ │ │ │ premiere date on Netflix & has released its first look photos of its anticipated return. │ │ │ │ │ │ │ │ Mo: Season 2 | Official Trailer | Netflix Life, Liberty and The Pursuit of Belonging. Mo Season 2 premieres │ │ │ │ January 30th, 2025; Only on Netflix. │ │ │ │ │ │ │ │ When and Where to Watch 'Mo Season 2'?: Release Date ... Netflix's acclaimed comedy-drama series Mo returns │ │ │ │ with its second and final season on January 30, 2025. All eight episodes will be available for streaming │ │ │ │ │ │ │ │ Mo: Season 2 Network: Netflix. Rating: TV-MA. Genre: Comedy. Original Language: English. Release Date: Jan │ │ │ │ 30, 2025. More Top TV Picks Netflix · Advertise │ │ │ │ │ │ │ │ Netflix announces premiere date for "Mo" Season 2 "Mo" — Netflix's heartfelt, comedic love letter to Alief │ │ │ │ and Houston — will return for its second and final season Jan. 30. Why it matters: │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭────────────────────────────────────────── EXECUTE_TOOL: search_tavily ──────────────────────────────────────────╮ │ ╭─ Input ─────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ { │ │ │ │ "query": "The Last of Us season 2 release date" │ │ │ │ } │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ ╭─ OUTPUT ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ The Last of Us: Season 2 - Rotten Tomatoes Network: HBO. Rating: TV-MA. Genre: Action , Adventure , Drama , │ │ │ │ Horror. Original Language: English. Release Date: Apr 13, 2025. Advertise With │ │ │ │ │ │ │ │ The Last of Us (TV series) - Wikipedia The second season premiered on April 13, 2025, and averaged almost │ │ │ │ 37 million viewers within two months. A third season is expected to air in 2027. │ │ │ │ │ │ │ │ 'The Last Of Us' Season 2 Release Schedule—When Do New ... The first episode of The Last of Us Season 2 is │ │ │ │ now streaming as of April 13. ## When Do New Episodes of The Last of Us Season 2 Come Out? New episodes of │ │ │ │ The Last of Us Season 2 air every Sunday at 9 p.m. ET/PT on HBO and Max. The next episode, Season 2, │ │ │ │ Episode 2, is scheduled to be released on Sunday, April 20. ## How Many Episodes Are In The Last of Us │ │ │ │ Season 2? Following the Season 2 premiere on April 13, new episodes of The Last of Us will drop every │ │ │ │ Sunday at 9 p.m. ET/PT on HBO and stream on Max, leading up to the season finale on May 25. │ │ │ │ │ │ │ │ The Last of Us season 2 - Wikipedia The second season of the American post-apocalyptic drama "Drama (film │ │ │ │ and television)") television series The Last of Us "The Last of Us (TV series)") was originally broadcast │ │ │ │ on HBO between April and May 2025. The second season, based on the first half of the 2020 game The Last of │ │ │ │ Us Part II, follows Joel "Joel (The Last of Us)") (Pedro Pascal) and Ellie "Ellie (The Last of Us)") (Bella │ │ │ │ Ramsey) five years after the events of the first season, after they have settled into Jackson, Wyoming, │ │ │ │ with Joel's brother Tommy#Tommy "Characters of The Last of Us (TV series)") (Gabriel Luna) and Ellie's │ │ │ │ friends Dina#Dina "Characters of The Last of Us (TV series)") (Isabela Merced) and Jesse#Jesse "Characters │ │ │ │ of The Last of Us (TV series)") (Young Mazino). │ │ │ │ │ │ │ │ 'The Last of Us' season 2 will reportedly premiere on April 13th. 'The Last of Us' season 2 will reportedly │ │ │ │ premiere on April 13th. │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭──────────────────────────────────── CALL_LLM: mistral/mistral-small-latest ─────────────────────────────────────╮ │ ╭─ OUTPUT ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ [ │ │ │ │ { │ │ │ │ "tool.name": "final_answer", │ │ │ │ "tool.args": "{\"answer\": \"Here are 5 trending TV shows in 2025:\\n\\n1. **Platonic** (Season 2)\\n │ │ │ │ } │ │ │ │ ] │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ ╭─ USAGE ─────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ { │ │ │ │ "input_tokens": 3993, │ │ │ │ "output_tokens": 492, │ │ │ │ "input_cost": 0.0003993, │ │ │ │ "output_cost": 0.00014759999999999998 │ │ │ │ } │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭────────────────────────────────────────── EXECUTE_TOOL: final_answer ───────────────────────────────────────────╮ │ ╭─ Input ─────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ { │ │ │ │ "answer": "Here are 5 trending TV shows in 2025:\n\n1. **Platonic** (Season 2)\n - **Release Date:** Aug │ │ │ │ } │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ ╭─ OUTPUT ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ Here are 5 trending TV shows in 2025: │ │ │ │ │ │ │ │ 1 Platonic (Season 2) │ │ │ │ │ │ │ │ • Release Date: August 6, 2025 │ │ │ │ • Genre: Comedy │ │ │ │ • Description: The series follows the nostalgic ride of Sylvia and her friends as they navigate life and │ │ │ │ relationships. The second season continues to leverage the explosively charming chemistry between Rose │ │ │ │ Byrne and Seth Rogen. │ │ │ │ │ │ │ │ 2 The Wheel of Time (Season 3) │ │ │ │ │ │ │ │ • Release Date: March 13, 2025 │ │ │ │ • Genre: Fantasy, Action, Adventure │ │ │ │ • Description: Based on Robert Jordan's fantasy book series, this season follows the continuing adventures │ │ │ │ of Moiraine and her companions as they navigate a world where time is circular and destiny is │ │ │ │ inevitable. │ │ │ │ │ │ │ │ 3 Andor (Season 2) │ │ │ │ │ │ │ │ • Release Date: April 22, 2025 │ │ │ │ • Genre: Sci-Fi, Drama │ │ │ │ • Description: The second season of this critically acclaimed series continues the story of Cassian │ │ │ │ Andor's involvement in the growing rebellion against the Galactic Empire. It delves deeper into the │ │ │ │ political intrigue and personal sacrifices of the characters. │ │ │ │ │ │ │ │ 4 Mo (Season 2) │ │ │ │ │ │ │ │ • Release Date: January 30, 2025 │ │ │ │ • Genre: Comedy, Drama │ │ │ │ • Description: This heartfelt, comedic series returns for its second and final season, exploring the life │ │ │ │ of Mo and her journey through personal and professional challenges. The series is known for its unique │ │ │ │ blend of humor and emotional depth. │ │ │ │ │ │ │ │ 5 The Last of Us (Season 2) │ │ │ │ │ │ │ │ • Release Date: April 13, 2025 │ │ │ │ • Genre: Action, Adventure, Drama, Horror │ │ │ │ • Description: The second season of this post-apocalyptic drama follows Joel and Ellie five years after │ │ │ │ the events of the first season. They have settled into Jackson, Wyoming, with Joel's brother Tommy and │ │ │ │ Ellie's friends Dina and Jesse. The season is based on the first half of the 2020 game The Last of Us │ │ │ │ Part II. │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
View the results¶
The agent.run
method returns an AgentTrace object, which has a few convenient attributes for displaying some interesting information about the run.
print(agent_trace.final_output) # Final answer
print(f"Duration: {agent_trace.duration.total_seconds():.2f} seconds")
print(f"Usage: {agent_trace.tokens.total_tokens:,}")
print(f"Cost (USD): {agent_trace.cost.total_cost:.6f}")
Here are 5 trending TV shows in 2025: 1. **Platonic** (Season 2) - **Release Date:** August 6, 2025 - **Genre:** Comedy - **Description:** The series follows the nostalgic ride of Sylvia and her friends as they navigate life and relationships. The second season continues to leverage the explosively charming chemistry between Rose Byrne and Seth Rogen. 2. **The Wheel of Time** (Season 3) - **Release Date:** March 13, 2025 - **Genre:** Fantasy, Action, Adventure - **Description:** Based on Robert Jordan's fantasy book series, this season follows the continuing adventures of Moiraine and her companions as they navigate a world where time is circular and destiny is inevitable. 3. **Andor** (Season 2) - **Release Date:** April 22, 2025 - **Genre:** Sci-Fi, Drama - **Description:** The second season of this critically acclaimed series continues the story of Cassian Andor's involvement in the growing rebellion against the Galactic Empire. It delves deeper into the political intrigue and personal sacrifices of the characters. 4. **Mo** (Season 2) - **Release Date:** January 30, 2025 - **Genre:** Comedy, Drama - **Description:** This heartfelt, comedic series returns for its second and final season, exploring the life of Mo and her journey through personal and professional challenges. The series is known for its unique blend of humor and emotional depth. 5. **The Last of Us** (Season 2) - **Release Date:** April 13, 2025 - **Genre:** Action, Adventure, Drama, Horror - **Description:** The second season of this post-apocalyptic drama follows Joel and Ellie five years after the events of the first season. They have settled into Jackson, Wyoming, with Joel's brother Tommy and Ellie's friends Dina and Jesse. The season is based on the first half of the 2020 game *The Last of Us Part II*. Duration: 17.02 seconds Usage: 6,020 Cost (USD): 0.000724