Huge refactoring

This commit is contained in:
2026-09-17 00:46:04 +03:00
parent c65a9a91e2
commit 018be076b9
11 changed files with 534 additions and 344 deletions

View File

@@ -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"""