Huge refactoring
This commit is contained in:
12
agent.py
12
agent.py
@@ -1,7 +1,17 @@
|
||||
from dataclasses import dataclass
|
||||
from typing import Literal
|
||||
|
||||
import httpx2
|
||||
from openai import OpenAI
|
||||
|
||||
from utils import AgentMessage
|
||||
|
||||
@dataclass
|
||||
class AgentMessage:
|
||||
content: str
|
||||
"""Content of the message"""
|
||||
|
||||
role: Literal["system", "assistant", "user"]
|
||||
"""Who sent the message"""
|
||||
|
||||
class Agent:
|
||||
"""Perform operations with timeline events using OpenAI-compatible API"""
|
||||
|
||||
Reference in New Issue
Block a user