вторая итерация
This commit is contained in:
@@ -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]:
|
||||
|
||||
Reference in New Issue
Block a user