This commit is contained in:
marko-kraemer 2025-04-16 06:09:31 +01:00
parent 1b9553b865
commit dc1c19e5db
2 changed files with 2 additions and 2 deletions

View File

@ -153,7 +153,7 @@ async def run_agent(thread_id: str, project_id: str, stream: bool = True, thread
stream=stream,
llm_model=model_name,
llm_temperature=0,
llm_max_tokens=1280000,
llm_max_tokens=128000,
tool_choice="auto",
max_xml_tool_calls=1,
temporary_message=temporary_message,

View File

@ -1236,7 +1236,7 @@ class ResponseProcessor:
# Always use xml_tag_name if it exists
if "xml_tag_name" in tool_call:
xml_tag_name = tool_call["xml_tag_name"]
return f"<tool_result><{xml_tag_name}> {str(result)} </{xml_tag_name}></tool_result>"
return f"<tool_result> <{xml_tag_name}> {str(result)} </{xml_tag_name}>< /tool_result>"
# Non-XML tool, just return the function result
function_name = tool_call["function_name"]