вторая итерация

This commit is contained in:
ki.sagidullin
2026-04-12 11:48:37 +05:00
parent 8f16a6d669
commit f5677013cc
7 changed files with 190 additions and 234 deletions

View File

@@ -3,13 +3,14 @@ from langchain_ollama import ChatOllama
from langchain_core.messages import SystemMessage, HumanMessage
import json
from typing import List, Dict
from config import MODEL_NAME
from config import MODEL_NAME, LLM_HOST
class PlannerAgent:
def __init__(self, llm=None):
self.llm = llm or ChatOllama(
model=MODEL_NAME,
temperature=0.0
temperature=0.0,
base_url=LLM_HOST
)
def create_plan(self, task: str, tools_description: List[Dict]) -> List[Dict]: