Five functions in five days. run_agent, word_count_of_output, summarize_text, classify_sentiment, summarize_then_classify. Which pattern surprised you most?
The two-agent chain. I expected a framework or a special chaining API. It's just two function calls in sequence — the output of one is the input to the next. That's it.
That insight is Week 1's key takeaway. AI agents are functions. The composition rules are the same as any Python function. What confused you about the individual calls?
result.output vs .data — I kept second-guessing myself. And why .strip().lower() is necessary even when the system prompt says 'one word'.
Models are probabilistic. 'Return exactly one word' is a very strong constraint — but it's still a prompt, not a type signature. Week 2's result_type is the type signature. Six questions — four from this week, two previewing Week 2.
Ready. I want Week 2's structured output — the summarise step is still returning uncontrolled text length.
That control is exactly what result_type gives you.
Five functions in five days. run_agent, word_count_of_output, summarize_text, classify_sentiment, summarize_then_classify. Which pattern surprised you most?
The two-agent chain. I expected a framework or a special chaining API. It's just two function calls in sequence — the output of one is the input to the next. That's it.
That insight is Week 1's key takeaway. AI agents are functions. The composition rules are the same as any Python function. What confused you about the individual calls?
result.output vs .data — I kept second-guessing myself. And why .strip().lower() is necessary even when the system prompt says 'one word'.
Models are probabilistic. 'Return exactly one word' is a very strong constraint — but it's still a prompt, not a type signature. Week 2's result_type is the type signature. Six questions — four from this week, two previewing Week 2.
Ready. I want Week 2's structured output — the summarise step is still returning uncontrolled text length.
That control is exactly what result_type gives you.
Create a free account to get started. Paid plans unlock all tracks.