feat: migrate agent core to pydantic-ai framework

This commit is contained in:
Michael
2026-08-02 17:04:44 +02:00
parent 4f7059788d
commit be0d8dc24b
10 changed files with 109 additions and 117 deletions
+3 -3
View File
@@ -1,14 +1,14 @@
import logging
from core.agent import BaseAgent
from .coding_prompt import CODING_AGENT_SYSTEM_PROMPT
from core.coding_prompt import CODING_AGENT_SYSTEM_PROMPT
from core.schemas import CodingTaskResult
logger: logging.Logger = logging.getLogger("agent-coding")
class CodingAgent(BaseAgent):
"""AI agent that interacts with LMStudio models and tools for coding tasks."""
"""AI agent that interacts with Pydantic AI models and tools for coding tasks."""
def __init__(self, model_name: str) -> None:
super().__init__(model_name)
self.system_prompt: str = CODING_AGENT_SYSTEM_PROMPT