Spaces:
Running
Running
File size: 423 Bytes
2a2c2ad |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
from pydantic_ai import Agent, RunContext
from pydantic_ai.models.openai import OpenAIModel
from dotenv import load_dotenv
import os
load_dotenv()
model = OpenAIModel(
"gpt-4o",
api_key=os.environ.get("OPENAI_API_KEY")
)
system_prompt = """
You are a helpful assistant that can answer questions and help with tasks.
"""
generic_agent = Agent(
model=model,
system_prompt=system_prompt,
tools=[],
)
|