Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Demystifying AI Agents with Python Code (PyOhio...

Avatar for William Horton William Horton
July 29, 2025
15

Demystifying AI Agents with Python Code (PyOhio 2025)

Avatar for William Horton

William Horton

July 29, 2025
Tweet

Transcript

  1. My opinion: “AI Agents” are currently overhyped, but at the

    core there is useful functionality that is worth exploring.
  2. Who am I? ML Engineer applying GenAI in Healthcare Twitter/X:

    @hortonhearsafoo BlueSky: @horton.hearsa.foo
  3. Maven Clinic Maven is the world's largest virtual clinic for

    women and families, supporting our members through fertility, pregnancy, parenting, and menopause. Maven uses Python! We are hiring remotely. Many different roles: AI/ML, Backend, Data, Infra, Analytics
  4. In this talk I hope to show you how to

    translate the concept of “AI Agent” from the high-level terms into concrete Python code that you can understand.
  5. Real-World Example Coding Agents: There is no “magic” to something

    like Cursor Behind the scenes it is an LLM agent like what I demonstrated, with a lot of development dedicated to the tools. Coding Agents usually have tools that mimic command-line tools like: - ls - grep (or more advanced search techniques) - cat/tail/head - cd
  6. Practical tips The agent can only understand the functions you

    give it as far as you’ve: - given the function and parameters clear names - written an informative docstring - added parameter types (and descriptions as needed, see typing.Annotated) If the agent has trouble, you can give it examples of correct “trajectories” of using the different tools Performance tends to decline as number of tools increases