AI Agent in just 9 lines Python code
AI Agents is essentially an API call to AI provider. We add additional context using to get better result. For example, if you want to get a current weather in your city, you will hit external api (via tools) and add in the AI context.
Here is an example in which the basic AI agent is built with just 9 lines of python code.
Here is an expanded version of the snippet