Welcome to the PydanticAIAgent project! This repository provides a streamlined way to build and deploy AI agents leveraging PydanticAI and Docker.
In the current working directory, create a .env
file and add the following variables:
OPENAI_API_KEY = '.........'
TAVILY_API_KEY = '.........'
LANGCHAIN_API_KEY = '.........'
Replace the placeholders (.........
) with your actual API keys.
-
Build the Docker image:
docker build -t pydantic-ai-app .
-
Run the Docker container:
docker run -d -p 80:80 pydantic-ai-app
Once the container is running, open your web browser and navigate to:
Here, you can explore the API's autogenerated documentation and interact with its endpoints.
- Environment Variable Integration: Easily configure API keys through the
.env
file. - Dockerized Deployment: Simplified application setup and deployment using Docker.
- Interactive Documentation: Access Swagger UI at
/docs
for seamless testing and exploration.
Happy coding! 🎉