Back to discover
VideosBuild with AI

Hugging Face: tools and handoffs with Agents SDK

Follow a Python introduction to tools, structured output and agent coordination.

Jump to the practice exercise
Watch on YouTube

Build a small agent

Alejandro AO’s January 2026 community tutorial, hosted on Hugging Face, introduces the OpenAI Agents SDK with open models. Alejandro AO’s creator companion explicitly identifies its video version and covers custom tools, typed output and handoffs. Start with Python familiarity, package installation and provider credentials. Its weather function returns an illustrative answer, not a live forecast.

Check provider access separately

The separate Inference Providers guide explains account access, tokens and selecting available providers. Its worked example generates an image, so use it for access setup rather than as the agent exercise. Before adapting the lesson, confirm that your chosen model is available through a provider and that your account has remaining credits. A useful first exercise is to inspect a generated code snippet and identify where the token and provider selection enter the request.

Try it: a CurioFuse exercise

An original editorial exercise with a checkable outcome.

CurioFuse exercise: trace the example data

Take the lesson's distinction between an illustrative weather function and a real forecast. On paper, define a fictional lookup: Amberville returns “sunny,” Blueport returns “rainy,” and other names return “unknown.” Try the requests “Weather in Blueport?” and “Weather in Greenbay?”

Check the city argument separately from the returned text. Your expected results are rainy and unknown; neither is a real forecast. Before adding a model, identify which part chooses an argument, which executes the lookup and which explains the result.