Use popular Python AI agent frameworks with GitHub Models or Azure OpenAI models! #2
Replies: 2 comments 4 replies
-
Wow! thanks for sharing @pamelafox this is super useful for those getting started with Agent frameworks and Azure AI Foundry. I need to take a look at smolagents will have a go! |
Beta Was this translation helpful? Give feedback.
-
Hi @pamelafox, I have followed your code & using pydanticAI with Github models. I have noticed Github models are actually NOT making function/tool calls, but only using Here is me comparing the Mistral model vs Github model in making tool calls for my purpose Mistral Model
Github Model
Here's my agent using either the Mistral Model or the Github Model
When I use This leads to a good response from the Agent when using the mistral model. But when I use the As you can see, the agent(when using the Please help me as I'm not able to make tool calls in PydanticAI when using any Github Models. Tell me where I'm going wrong. Thanks |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Introduction
This repo includes multiple examples of single agents and multi-agents coded with popular Python AI agent frameworks:
https://github.com/Azure-Samples/python-ai-agent-frameworks-demos
Frameworks included: openai-agents, Semantic Kernel, AutoGen, Langgraph, Pydantic AI, smolagents, llamaindex
You can either open the repo in GitHub Codespaces and immediately use the models with GitHub Models, or you can use "azd up" to create an Azure OpenAI model, and run the examples with that model.
The examples are also translated into spanish in the spanish/ folder.
We put on two live streams highlighting the examples:
Prototyping AI Agents with GitHub Models (English)
Prototipando agentes de IA con GitHub Models (Español)
Grabación en YouTube
Diapositivas (PPT)
Features and Screenshots
These are some of the architectures demonstrated in the examples:




Technical Details
Technologies used: Python, openai-agents, Semantic Kernel, AutoGen, Langgraph, Pydantic AI, smolagents, llamaindex, rich
Architecture overview: GitHub Models or Azure OpenAI
Challenges and Solutions
It was tricky to understand how to implement the same scenario across multiple frameworks, but it was also fun to figure that out - helped me understand the frameworks better.
Beta Was this translation helpful? Give feedback.
All reactions