/Learn

Beginner · 90 minutes

Agent Framework 101: Build your first agent

Build a Python event assistant with Microsoft Agent Framework, connect it to Learn Models, add a tool, and test a conversation.

5 modules 90 minutes 500 points By Henk Boelman
Outcomes

What you will learn

  • Explain what the model, agent, client, tools, and session each do
  • Connect Microsoft Agent Framework to a custom Responses API endpoint
  • Build and run a Python agent with clear instructions
  • Expose a typed, read-only Python function as an agent tool
  • Reuse a session for follow-up questions without mixing users
  • Test tool behavior and inspect model-dependent results

Before you start

  • You can write Python functions and use a terminal
  • Python 3.10 or newer and a code editor
  • Access to Learn Models with an API key, an OpenAI-compatible Responses API base URL, and a model ID
  • A Learn Models model that supports function calling
Curriculum

Course modules

1

Connect to Learn Models

Prepare Python and configure the Responses client without hard-coding credentials.

1 pages · 2 questions
2

Build your first agent

Give an agent a focused job and send its first request through Learn Models.

1 pages · 2 questions
3

Add a tool

Expose a small typed lookup function and observe the framework's tool loop.

1 pages · 2 questions
4

Keep conversation context

Use an explicit session to connect follow-up questions and keep conversations separate.

1 pages · 2 questions
5

Test your agent

Separate deterministic tool checks from model-dependent behavior and record failures honestly.

1 pages · 2 questions