merge: resolve conflict with main, keep extracted _run_agent_loop with temperature
This commit is contained in:
@@ -43,6 +43,7 @@ class AgentLoop:
|
||||
workspace: Path,
|
||||
model: str | None = None,
|
||||
max_iterations: int = 20,
|
||||
temperature: float = 0.7,
|
||||
memory_window: int = 50,
|
||||
brave_api_key: str | None = None,
|
||||
exec_config: "ExecToolConfig | None" = None,
|
||||
@@ -57,6 +58,7 @@ class AgentLoop:
|
||||
self.workspace = workspace
|
||||
self.model = model or provider.get_default_model()
|
||||
self.max_iterations = max_iterations
|
||||
self.temperature = temperature
|
||||
self.memory_window = memory_window
|
||||
self.brave_api_key = brave_api_key
|
||||
self.exec_config = exec_config or ExecToolConfig()
|
||||
@@ -148,7 +150,8 @@ class AgentLoop:
|
||||
response = await self.provider.chat(
|
||||
messages=messages,
|
||||
tools=self.tools.get_definitions(),
|
||||
model=self.model
|
||||
model=self.model,
|
||||
temperature=self.temperature,
|
||||
)
|
||||
|
||||
if response.has_tool_calls:
|
||||
|
||||
Reference in New Issue
Block a user