Agentic AI Course : Week 2

Day 1

Async Python


it is super light weight
kind of light weight alternative for threads











Python Event Loop

https://www.youtube.com/watch?v=RIVcqT2OGPA





























then there is gather function










event loop will schedule all three , but as soon as one of them start blocking other will be running

OpenAI Agents SDK







































Code







When calling runner.run we get a coroutine object, because runner.run is an async method
















this means in order for us to run agent , we call await









you can package all of this in a trace (to record all interactions , under heading "telling a joke" this allows you to package up and make it available for tracing and observability ) 








in order to see the traces, you will have to login into the openAI



































Day 2




























call like this




















below code 1) calls 3 agents to write email 2) cals another agent to choose best email




























how to write a function tool



























because of decorator it is converted into a functiontool

















Comments

Popular posts from this blog

Agentic AI Course : Week 1

LLM Engineering course : Day 1

LLM Engineering : Week 2