Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1022 Bytes

File metadata and controls

39 lines (30 loc) · 1022 Bytes

Agent-Dev-PydanticAI

A structured syllabus for an Agent Development Course using Pydantic AI

Getting Started

Setting up the Environment

Before running the code in this repository, you need to set up a Python virtual environment:

  1. Create a virtual environment:

    python -m venv venv
  2. Activate the virtual environment:

    • On Windows:
      venv\Scripts\activate
    • On macOS/Linux:
      source venv/bin/activate
  3. Install the required dependencies:

    pip install -r requirements.txt
  4. Create a .env file in the root directory and add your API key:

    GEMINI_API_KEY=your_gemini_api_key
    OPENAI_API_KEY=your_openai_api_key
    ANTHROPIC_API_KEY=your_anthropic_api_key

You should see (venv) at the beginning of your command prompt, indicating that the virtual environment is active.

Note: Always make sure the virtual environment is activated before running any code from this repository.