Skip to content

DhunganaKB/PydanticAIAgent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PydanticAI Agent

Welcome to the PydanticAIAgent project! This repository provides a streamlined way to build and deploy AI agents leveraging PydanticAI and Docker.

Setup Instructions

Add a .env File

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.


Running the Application

Build and Run the Docker Container

  1. Build the Docker image:

    docker build -t pydantic-ai-app .
  2. Run the Docker container:

    docker run -d -p 80:80 pydantic-ai-app

Access the Application

Once the container is running, open your web browser and navigate to:

http://0.0.0.0/docs

Here, you can explore the API's autogenerated documentation and interact with its endpoints.


Features

  • 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! 🎉

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published