Hacker Newsnew | past | comments | ask | show | jobs | submit | easypancakes's commentslogin

Hi! I am a bit lost in all of this. How do you create your own agent and run your own loop? I've looked at PydanticAI but don't get it. Would you please give me an example? Thanks!


Of course! In the PydanticAI docs for Agents, you have a fully defined example of a tool calling agent (roulette_wheel.py)

https://ai.pydantic.dev/agents/#introduction

If you need professional help in any of this, I also do consulting and/or can do mentoring on my knowledge in this area.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: