Skip to content

Ollama sequential not working, its just repeating tool calls #940

@MervinPraison

Description

@MervinPraison

Use multiple agents to run parallel at every stage of the process, to understand, for final review

from praisonaiagents import Agent

def get_stock_price(company_name: str) -> str:
"""
Get the stock price of a company

Args:
company_name (str): The name of the company

Returns:
str: The stock price of the company
"""
return f"The stock price of {company_name} is 100"
def multiply(a: int, b: int) -> int:
"""
Multiply two numbers
"""
return a * b

agent = Agent(
instructions="You are a helpful assistant. You can use the tools provided to you to help the user.",
llm="ollama/qwen3",
tools=[get_stock_price, multiply]
)

result = agent.start("what is the stock price of Google? multiply the Google stock price with 2")
print(result)

❯ python ollama-sequential.py
23:51:24 - LiteLLM:DEBUG: litellm_logging.py:141 - [Non-Blocking] Unable to import GenericAPILogger - LiteLLM Enterprise Feature - No module named 'litellm.proxy.enterprise'
[23:51:24] DEBUG    [23:51:24] litellm_logging.py:141 DEBUG [Non-Blocking] Unable to  litellm_logging.py:141
                    import GenericAPILogger - LiteLLM Enterprise Feature - No module                        
                    named 'litellm.proxy.enterprise'                                                        
[23:51:25] DEBUG    [23:51:25] telemetry.py:81 DEBUG Telemetry enabled with session          telemetry.py:81
                    4abafad38cbc16ef                                                                        
           DEBUG    [23:51:25] llm.py:150 DEBUG LLM instance initialized with: {                  llm.py:150
                      "model": "ollama/llama3.2",                                                           
                      "timeout": null,                                                                      
                      "temperature": null,                                                                  
                      "top_p": null,                                                                        
                      "n": null,                                                                            
                      "max_tokens": null,                                                                   
                      "presence_penalty": null,                                                             
                      "frequency_penalty": null,                                                            
                      "logit_bias": null,                                                                   
                      "response_format": null,                                                              
                      "seed": null,                                                                         
                      "logprobs": null,                                                                     
                      "top_logprobs": null,                                                                 
                      "api_version": null,                                                                  
                      "stop_phrases": null,                                                                 
                      "api_key": null,                                                                      
                      "base_url": null,                                                                     
                      "verbose": true,                                                                      
                      "markdown": true,                                                                     
                      "self_reflect": false,                                                                
                      "max_reflect": 3,                                                                     
                      "min_reflect": 1,                                                                     
                      "reasoning_steps": false,                                                             
                      "extra_settings": {}                                                                  
                    }                                                                                       
           DEBUG    [23:51:25] agent.py:417 DEBUG Tools passed to Agent with custom LLM:        agent.py:417
                    [<function get_stock_price at 0x10087c5e0>, <function multiply at                       
                    0x100900b80>]                                                                           
           DEBUG    [23:51:25] agent.py:1206 DEBUG Agent.chat parameters: {                    agent.py:1206
                      "prompt": "what is the stock price of Google? multiply the Google stock               
                    price with 2",                                                                          
                      "temperature": 0.2,                                                                   
                      "tools": null,                                                                        
                      "output_json": null,                                                                  
                      "output_pydantic": null,                                                              
                      "reasoning_steps": false,                                                             
                      "agent_name": "Agent",                                                                
                      "agent_role": "Assistant",                                                            
                      "agent_goal": "You are a helpful assistant. You can use the tools                     
                    provided to you to help the user."                                                      
                    }                                                                                       
           INFO     [23:51:25] llm.py:701 INFO Getting response from ollama/llama3.2              llm.py:701
           DEBUG    [23:51:25] llm.py:156 DEBUG LLM instance configuration: {                     llm.py:156
                      "model": "ollama/llama3.2",                                                           
                      "timeout": null,                                                                      
                      "temperature": null,                                                                  
                      "top_p": null,                                                                        
                      "n": null,                                                                            
                      "max_tokens": null,                                                                   
                      "presence_penalty": null,                                                             
                      "frequency_penalty": null,                                                            
                      "logit_bias": null,                                                                   
                      "response_format": null,                                                              
                      "seed": null,                                                                         
                      "logprobs": null,                                                                     
                      "top_logprobs": null,                                                                 
                      "api_version": null,                                                                  
                      "stop_phrases": null,                                                                 
                      "api_key": null,                                                                      
                      "base_url": null,                                                                     
                      "verbose": true,                                                                      
                      "markdown": true,                                                                     
                      "self_reflect": false,                                                                
                      "max_reflect": 3,                                                                     
                      "min_reflect": 1,                                                                     
                      "reasoning_steps": false                                                              
                    }                                                                                       
           DEBUG    [23:51:25] llm.py:152 DEBUG get_response parameters: {                        llm.py:152
                      "prompt": "what is the stock price of Google? multiply the Google stock               
                    price with 2",                                                                          
                      "system_prompt": "You are a helpful assistant. You can use the tools                  
                    provided to you to help the user.\n\nYour Role: Ass...",                                
                      "chat_history": "[1 messages]",                                                       
                      "temperature": 0.2,                                                                   
                      "tools": [                                                                            
                        "get_stock_price",                                                                  
                        "multiply"                                                                          
                      ],                                                                                    
                      "output_json": null,                                                                  
                      "output_pydantic": null,                                                              
                      "verbose": true,                                                                      
                      "markdown": true,                                                                     
                      "self_reflect": false,                                                                
                      "max_reflect": 3,                                                                     
                      "min_reflect": 1,                                                                     
                      "agent_name": "Agent",                                                                
                      "agent_role": "Assistant",                                                            
                      "agent_tools": [                                                                      
                        "get_stock_price",                                                                  
                        "multiply"                                                                          
                      ],                                                                                    
                      "kwargs": "{'reasoning_steps': False}"                                                
                    }                                                                                       
           DEBUG    [23:51:25] llm.py:2453 DEBUG Generating tool definition for callable:        llm.py:2453
                    get_stock_price                                                                         
           DEBUG    [23:51:25] llm.py:2498 DEBUG Function signature: (company_name: str) -> str  llm.py:2498
           DEBUG    [23:51:25] llm.py:2517 DEBUG Function docstring: Get the stock price of a    llm.py:2517
                    company                                                                                 
                                                                                                            
                    Args:                                                                                   
                        company_name (str): The name of the company                                         
                                                                                                            
                    Returns:                                                                                
                        str: The stock price of the company                                                 
           DEBUG    [23:51:25] llm.py:2523 DEBUG Param section split: ['Get the stock price of a llm.py:2523
                    company', 'company_name (str): The name of the company\n    \nReturns:\n                
                    str: The stock price of the company']                                                   
           DEBUG    [23:51:25] llm.py:2532 DEBUG Parameter descriptions: {'company_name (str)':  llm.py:2532
                    'The name of the company', 'Returns': '', 'str': 'The stock price of the                
                    company'}                                                                               
           DEBUG    [23:51:25] llm.py:2556 DEBUG Generated parameters: {'type': 'object',        llm.py:2556
                    'properties': {'company_name': {'type': 'string', 'description': 'Parameter             
                    description not available'}}, 'required': ['company_name']}                             
           DEBUG    [23:51:25] llm.py:2565 DEBUG Generated tool definition: {'type': 'function', llm.py:2565
                    'function': {'name': 'get_stock_price', 'description': 'Get the stock price             
                    of a company', 'parameters': {'type': 'object', 'properties':                           
                    {'company_name': {'type': 'string', 'description': 'Parameter description               
                    not available'}}, 'required': ['company_name']}}}                                       
           DEBUG    [23:51:25] llm.py:2453 DEBUG Generating tool definition for callable:        llm.py:2453
                    multiply                                                                                
           DEBUG    [23:51:25] llm.py:2498 DEBUG Function signature: (a: int, b: int) -> int     llm.py:2498
           DEBUG    [23:51:25] llm.py:2517 DEBUG Function docstring: Multiply two numbers        llm.py:2517
           DEBUG    [23:51:25] llm.py:2523 DEBUG Param section split: ['Multiply two numbers']   llm.py:2523
           DEBUG    [23:51:25] llm.py:2532 DEBUG Parameter descriptions: {}                      llm.py:2532
           DEBUG    [23:51:25] llm.py:2556 DEBUG Generated parameters: {'type': 'object',        llm.py:2556
                    'properties': {'a': {'type': 'integer', 'description': 'Parameter                       
                    description not available'}, 'b': {'type': 'integer', 'description':                    
                    'Parameter description not available'}}, 'required': ['a', 'b']}                        
           DEBUG    [23:51:25] llm.py:2565 DEBUG Generated tool definition: {'type': 'function', llm.py:2565
                    'function': {'name': 'multiply', 'description': 'Multiply two numbers',                 
                    'parameters': {'type': 'object', 'properties': {'a': {'type': 'integer',                
                    'description': 'Parameter description not available'}, 'b': {'type':                    
                    'integer', 'description': 'Parameter description not available'}},                      
                    'required': ['a', 'b']}}}                                                               
╭─ Agent Info ─────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                          │
│  👤 Agent: Agent                                                                                         │
│  Role: Assistant                                                                                         │
│  Tools: get_stock_price, multiply                                                                        │
│                                                                                                          │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭────────────────────────────────────────────── Instruction ───────────────────────────────────────────────╮
│ Agent Agent is processing prompt: what is the stock price of Google? multiply the Google stock price     │
│ with 2                                                                                                   │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯
/Users/praison/miniconda3/envs/praisonai-package/lib/python3.11/site-packages/httpx/_models.py:408: DeprecationWarning: Use 'content=<...>' to upload raw bytes/text content.
  headers, stream = encode_request(
Response generated in 0.7s
╭────────────────────────────────────────────────── Task ──────────────────────────────────────────────────╮
│ what is the stock price of Google? multiply the Google stock price with 2                                │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭──────────────────────────────────────────────── Response ────────────────────────────────────────────────╮
│ None                                                                                                     │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯
[23:51:26] DEBUG    [23:51:26] llm.py:1029 DEBUG [TOOL_EXEC_DEBUG] About to execute tool         llm.py:1029
                    get_stock_price with args: {'company_name': 'Google'}                                   
[23:51:27] DEBUG    [23:51:27] agent.py:953 DEBUG Agent executing tool get_stock_price with     agent.py:953
                    arguments: {'company_name': 'Google'}                                                   
           DEBUG    [23:51:27] telemetry.py:184 DEBUG Tool usage tracked: get_stock_price,  telemetry.py:184
                    success=True                                                                            
           DEBUG    [23:51:27] llm.py:1031 DEBUG [TOOL_EXEC_DEBUG] Tool execution result: The    llm.py:1031
                    stock price of Google is 100                                                            
           DEBUG    [23:51:27] llm.py:1038 DEBUG [TOOL_EXEC_DEBUG] Display message with result:  llm.py:1038
                    Agent Agent called function 'get_stock_price' with arguments:                           
                    {'company_name': 'Google'}                                                              
                    Function returned: The stock price of Google is 100                                     
           DEBUG    [23:51:27] llm.py:1043 DEBUG [TOOL_EXEC_DEBUG] About to display tool call    llm.py:1043
                    with message: Agent Agent called function 'get_stock_price' with arguments:             
                    {'company_name': 'Google'}                                                              
                    Function returned: The stock price of Google is 100                                     
           DEBUG    [23:51:27] main.py:224 DEBUG display_tool_call called with message: "Agent   main.py:224
                    Agent called function 'get_stock_price' with arguments: {'company_name':                
                    'Google'}\nFunction returned: The stock price of Google is 100"                         
           DEBUG    [23:51:27] main.py:231 DEBUG Cleaned message in display_tool_call: "Agent    main.py:231
                    Agent called function 'get_stock_price' with arguments: {'company_name':                
                    'Google'}\nFunction returned: The stock price of Google is 100"                         
╭─────────────────────────────────────── Tool Call ────────────────────────────────────────╮
│ Agent Agent called function 'get_stock_price' with arguments: {'company_name': 'Google'} │
│ Function returned: The stock price of Google is 100                                      │
╰──────────────────────────────────────────────────────────────────────────────────────────╯
           DEBUG    [23:51:27] llm.py:1029 DEBUG [TOOL_EXEC_DEBUG] About to execute tool         llm.py:1029
                    multiply with args: {'a': '100', 'b': '2'}                                              
           DEBUG    [23:51:27] agent.py:953 DEBUG Agent executing tool multiply with arguments: agent.py:953
                    {'a': '100', 'b': '2'}                                                                  
           DEBUG    [23:51:27] telemetry.py:184 DEBUG Tool usage tracked: multiply,         telemetry.py:184
                    success=True                                                                            
           DEBUG    [23:51:27] llm.py:1031 DEBUG [TOOL_EXEC_DEBUG] Tool execution result: 200    llm.py:1031
           DEBUG    [23:51:27] llm.py:1038 DEBUG [TOOL_EXEC_DEBUG] Display message with result:  llm.py:1038
                    Agent Agent called function 'multiply' with arguments: {'a': '100', 'b':                
                    '2'}                                                                                    
                    Function returned: 200                                                                  
           DEBUG    [23:51:27] llm.py:1043 DEBUG [TOOL_EXEC_DEBUG] About to display tool call    llm.py:1043
                    with message: Agent Agent called function 'multiply' with arguments: {'a':              
                    '100', 'b': '2'}                                                                        
                    Function returned: 200                                                                  
           DEBUG    [23:51:27] main.py:224 DEBUG display_tool_call called with message: "Agent   main.py:224
                    Agent called function 'multiply' with arguments: {'a': '100', 'b':                      
                    '2'}\nFunction returned: 200"                                                           
           DEBUG    [23:51:27] main.py:231 DEBUG Cleaned message in display_tool_call: "Agent    main.py:231
                    Agent called function 'multiply' with arguments: {'a': '100', 'b':                      
                    '2'}\nFunction returned: 200"                                                           
╭────────────────────────────────── Tool Call ──────────────────────────────────╮
│ Agent Agent called function 'multiply' with arguments: {'a': '100', 'b': '2'} │
│ Function returned: 200                                                        │
╰───────────────────────────────────────────────────────────────────────────────╯
           DEBUG    [23:51:27] llm.py:1029 DEBUG [TOOL_EXEC_DEBUG] About to execute tool         llm.py:1029
                    get_stock_price with args: {'company_name': 'Google'}                                   
           DEBUG    [23:51:27] agent.py:953 DEBUG Agent executing tool get_stock_price with     agent.py:953
                    arguments: {'company_name': 'Google'}                                                   
           DEBUG    [23:51:27] telemetry.py:184 DEBUG Tool usage tracked: get_stock_price,  telemetry.py:184
                    success=True                                                                            
           DEBUG    [23:51:27] llm.py:1031 DEBUG [TOOL_EXEC_DEBUG] Tool execution result: The    llm.py:1031
                    stock price of Google is 100                                                            
           DEBUG    [23:51:27] llm.py:1038 DEBUG [TOOL_EXEC_DEBUG] Display message with result:  llm.py:1038
                    Agent Agent called function 'get_stock_price' with arguments:                           
                    {'company_name': 'Google'}                                                              
                    Function returned: The stock price of Google is 100                                     
           DEBUG    [23:51:27] llm.py:1043 DEBUG [TOOL_EXEC_DEBUG] About to display tool call    llm.py:1043
                    with message: Agent Agent called function 'get_stock_price' with arguments:             
                    {'company_name': 'Google'}                                                              
                    Function returned: The stock price of Google is 100                                     
           DEBUG    [23:51:27] main.py:224 DEBUG display_tool_call called with message: "Agent   main.py:224
                    Agent called function 'get_stock_price' with arguments: {'company_name':                
                    'Google'}\nFunction returned: The stock price of Google is 100"                         
           DEBUG    [23:51:27] main.py:231 DEBUG Cleaned message in display_tool_call: "Agent    main.py:231
                    Agent called function 'get_stock_price' with arguments: {'company_name':                
                    'Google'}\nFunction returned: The stock price of Google is 100"                         
╭─────────────────────────────────────── Tool Call ────────────────────────────────────────╮
│ Agent Agent called function 'get_stock_price' with arguments: {'company_name': 'Google'} │
│ Function returned: The stock price of Google is 100                                      │
╰──────────────────────────────────────────────────────────────────────────────────────────╯
[23:51:28] DEBUG    [23:51:28] llm.py:1029 DEBUG [TOOL_EXEC_DEBUG] About to execute tool         llm.py:1029
                    multiply with args: {'a': '100', 'b': '2'}                                              
           DEBUG    [23:51:28] agent.py:953 DEBUG Agent executing tool multiply with arguments: agent.py:953
                    {'a': '100', 'b': '2'}                                                                  
           DEBUG    [23:51:28] telemetry.py:184 DEBUG Tool usage tracked: multiply,         telemetry.py:184
                    success=True                                                                            
           DEBUG    [23:51:28] llm.py:1031 DEBUG [TOOL_EXEC_DEBUG] Tool execution result: 200    llm.py:1031
           DEBUG    [23:51:28] llm.py:1038 DEBUG [TOOL_EXEC_DEBUG] Display message with result:  llm.py:1038
                    Agent Agent called function 'multiply' with arguments: {'a': '100', 'b':                
                    '2'}                                                                                    
                    Function returned: 200                                                                  
           DEBUG    [23:51:28] llm.py:1043 DEBUG [TOOL_EXEC_DEBUG] About to display tool call    llm.py:1043
                    with message: Agent Agent called function 'multiply' with arguments: {'a':              
                    '100', 'b': '2'}                                                                        
                    Function returned: 200                                                                  
           DEBUG    [23:51:28] main.py:224 DEBUG display_tool_call called with message: "Agent   main.py:224
                    Agent called function 'multiply' with arguments: {'a': '100', 'b':                      
                    '2'}\nFunction returned: 200"                                                           
           DEBUG    [23:51:28] main.py:231 DEBUG Cleaned message in display_tool_call: "Agent    main.py:231
                    Agent called function 'multiply' with arguments: {'a': '100', 'b':                      
                    '2'}\nFunction returned: 200"                                                           
╭────────────────────────────────── Tool Call ──────────────────────────────────╮
│ Agent Agent called function 'multiply' with arguments: {'a': '100', 'b': '2'} │
│ Function returned: 200                                                        │
╰───────────────────────────────────────────────────────────────────────────────╯
           DEBUG    [23:51:28] llm.py:431 DEBUG [OLLAMA_FIX] Function multiply received invalid   llm.py:431
                    parameters: ['company_name']                                                            
           DEBUG    [23:51:28] llm.py:432 DEBUG [OLLAMA_FIX] Valid parameters for multiply: ['b', llm.py:432
                    'a']                                                                                    
           DEBUG    [23:51:28] llm.py:433 DEBUG [OLLAMA_FIX] Original arguments: {'a':            llm.py:433
                    'get_stock_price', 'company_name': 'Google', 'b': '2'}                                  
           DEBUG    [23:51:28] llm.py:434 DEBUG [OLLAMA_FIX] Filtered arguments: {'a':            llm.py:434
                    'get_stock_price', 'b': '2'}                                                            
           DEBUG    [23:51:28] llm.py:1029 DEBUG [TOOL_EXEC_DEBUG] About to execute tool         llm.py:1029
                    multiply with args: {'a': 'get_stock_price', 'b': '2'}                                  
           DEBUG    [23:51:28] agent.py:953 DEBUG Agent executing tool multiply with arguments: agent.py:953
                    {'a': 'get_stock_price', 'b': '2'}                                                      
           DEBUG    [23:51:28] telemetry.py:184 DEBUG Tool usage tracked: multiply,         telemetry.py:184
                    success=True                                                                            
           DEBUG    [23:51:28] llm.py:1031 DEBUG [TOOL_EXEC_DEBUG] Tool execution result:        llm.py:1031
                    get_stock_priceget_stock_price                                                          
           DEBUG    [23:51:28] llm.py:1038 DEBUG [TOOL_EXEC_DEBUG] Display message with result:  llm.py:1038
                    Agent Agent called function 'multiply' with arguments: {'a':                            
                    'get_stock_price', 'b': '2'}                                                            
                    Function returned: get_stock_priceget_stock_price                                       
           DEBUG    [23:51:28] llm.py:1043 DEBUG [TOOL_EXEC_DEBUG] About to display tool call    llm.py:1043
                    with message: Agent Agent called function 'multiply' with arguments: {'a':              
                    'get_stock_price', 'b': '2'}                                                            
                    Function returned: get_stock_priceget_stock_price                                       
           DEBUG    [23:51:28] main.py:224 DEBUG display_tool_call called with message: "Agent   main.py:224
                    Agent called function 'multiply' with arguments: {'a': 'get_stock_price',               
                    'b': '2'}\nFunction returned: get_stock_priceget_stock_price"                           
           DEBUG    [23:51:28] main.py:231 DEBUG Cleaned message in display_tool_call: "Agent    main.py:231
                    Agent called function 'multiply' with arguments: {'a': 'get_stock_price',               
                    'b': '2'}\nFunction returned: get_stock_priceget_stock_price"                           
╭──────────────────────────────────────── Tool Call ────────────────────────────────────────╮
│ Agent Agent called function 'multiply' with arguments: {'a': 'get_stock_price', 'b': '2'} │
│ Function returned: get_stock_priceget_stock_price                                         │
╰───────────────────────────────────────────────────────────────────────────────────────────╯
           DEBUG    [23:51:28] llm.py:1029 DEBUG [TOOL_EXEC_DEBUG] About to execute tool         llm.py:1029
                    multiply with args: {'a': '100', 'b': '2'}                                              
           DEBUG    [23:51:28] agent.py:953 DEBUG Agent executing tool multiply with arguments: agent.py:953
                    {'a': '100', 'b': '2'}                                                                  
           DEBUG    [23:51:28] telemetry.py:184 DEBUG Tool usage tracked: multiply,         telemetry.py:184
                    success=True                                                                            
           DEBUG    [23:51:28] llm.py:1031 DEBUG [TOOL_EXEC_DEBUG] Tool execution result: 200    llm.py:1031
           DEBUG    [23:51:28] llm.py:1038 DEBUG [TOOL_EXEC_DEBUG] Display message with result:  llm.py:1038
                    Agent Agent called function 'multiply' with arguments: {'a': '100', 'b':                
                    '2'}                                                                                    
                    Function returned: 200                                                                  
           DEBUG    [23:51:28] llm.py:1043 DEBUG [TOOL_EXEC_DEBUG] About to display tool call    llm.py:1043
                    with message: Agent Agent called function 'multiply' with arguments: {'a':              
                    '100', 'b': '2'}                                                                        
                    Function returned: 200                                                                  
           DEBUG    [23:51:28] main.py:224 DEBUG display_tool_call called with message: "Agent   main.py:224
                    Agent called function 'multiply' with arguments: {'a': '100', 'b':                      
                    '2'}\nFunction returned: 200"                                                           
           DEBUG    [23:51:28] main.py:231 DEBUG Cleaned message in display_tool_call: "Agent    main.py:231
                    Agent called function 'multiply' with arguments: {'a': '100', 'b':                      
                    '2'}\nFunction returned: 200"                                                           
╭────────────────────────────────── Tool Call ──────────────────────────────────╮
│ Agent Agent called function 'multiply' with arguments: {'a': '100', 'b': '2'} │
│ Function returned: 200                                                        │
╰───────────────────────────────────────────────────────────────────────────────╯
[23:51:29] DEBUG    [23:51:29] llm.py:1029 DEBUG [TOOL_EXEC_DEBUG] About to execute tool         llm.py:1029
                    multiply with args: {'a': '100', 'b': '2'}                                              
           DEBUG    [23:51:29] agent.py:953 DEBUG Agent executing tool multiply with arguments: agent.py:953
                    {'a': '100', 'b': '2'}                                                                  
           DEBUG    [23:51:29] telemetry.py:184 DEBUG Tool usage tracked: multiply,         telemetry.py:184
                    success=True                                                                            
           DEBUG    [23:51:29] llm.py:1031 DEBUG [TOOL_EXEC_DEBUG] Tool execution result: 200    llm.py:1031
           DEBUG    [23:51:29] llm.py:1038 DEBUG [TOOL_EXEC_DEBUG] Display message with result:  llm.py:1038
                    Agent Agent called function 'multiply' with arguments: {'a': '100', 'b':                
                    '2'}                                                                                    
                    Function returned: 200                                                                  
           DEBUG    [23:51:29] llm.py:1043 DEBUG [TOOL_EXEC_DEBUG] About to display tool call    llm.py:1043
                    with message: Agent Agent called function 'multiply' with arguments: {'a':              
                    '100', 'b': '2'}                                                                        
                    Function returned: 200                                                                  
           DEBUG    [23:51:29] main.py:224 DEBUG display_tool_call called with message: "Agent   main.py:224
                    Agent called function 'multiply' with arguments: {'a': '100', 'b':                      
                    '2'}\nFunction returned: 200"                                                           
           DEBUG    [23:51:29] main.py:231 DEBUG Cleaned message in display_tool_call: "Agent    main.py:231
                    Agent called function 'multiply' with arguments: {'a': '100', 'b':                      
                    '2'}\nFunction returned: 200"                                                           
╭────────────────────────────────── Tool Call ──────────────────────────────────╮
│ Agent Agent called function 'multiply' with arguments: {'a': '100', 'b': '2'} │
│ Function returned: 200                                                        │
╰───────────────────────────────────────────────────────────────────────────────╯
           DEBUG    [23:51:29] llm.py:1029 DEBUG [TOOL_EXEC_DEBUG] About to execute tool         llm.py:1029
                    multiply with args: {'a': '100', 'b': '2'}                                              
           DEBUG    [23:51:29] agent.py:953 DEBUG Agent executing tool multiply with arguments: agent.py:953
                    {'a': '100', 'b': '2'}                                                                  
           DEBUG    [23:51:29] telemetry.py:184 DEBUG Tool usage tracked: multiply,         telemetry.py:184
                    success=True                                                                            
           DEBUG    [23:51:29] llm.py:1031 DEBUG [TOOL_EXEC_DEBUG] Tool execution result: 200    llm.py:1031
           DEBUG    [23:51:29] llm.py:1038 DEBUG [TOOL_EXEC_DEBUG] Display message with result:  llm.py:1038
                    Agent Agent called function 'multiply' with arguments: {'a': '100', 'b':                
                    '2'}                                                                                    
                    Function returned: 200                                                                  
           DEBUG    [23:51:29] llm.py:1043 DEBUG [TOOL_EXEC_DEBUG] About to display tool call    llm.py:1043
                    with message: Agent Agent called function 'multiply' with arguments: {'a':              
                    '100', 'b': '2'}                                                                        
                    Function returned: 200                                                                  
           DEBUG    [23:51:29] main.py:224 DEBUG display_tool_call called with message: "Agent   main.py:224
                    Agent called function 'multiply' with arguments: {'a': '100', 'b':                      
                    '2'}\nFunction returned: 200"                                                           
           DEBUG    [23:51:29] main.py:231 DEBUG Cleaned message in display_tool_call: "Agent    main.py:231
                    Agent called function 'multiply' with arguments: {'a': '100', 'b':                      
                    '2'}\nFunction returned: 200"                                                           
╭────────────────────────────────── Tool Call ──────────────────────────────────╮
│ Agent Agent called function 'multiply' with arguments: {'a': '100', 'b': '2'} │
│ Function returned: 200                                                        │
╰───────────────────────────────────────────────────────────────────────────────╯
[23:51:30] DEBUG    [23:51:30] llm.py:1029 DEBUG [TOOL_EXEC_DEBUG] About to execute tool         llm.py:1029
                    multiply with args: {'a': '100', 'b': '2'}                                              
           DEBUG    [23:51:30] agent.py:953 DEBUG Agent executing tool multiply with arguments: agent.py:953
                    {'a': '100', 'b': '2'}                                                                  
           DEBUG    [23:51:30] telemetry.py:184 DEBUG Tool usage tracked: multiply,         telemetry.py:184
                    success=True                                                                            
           DEBUG    [23:51:30] llm.py:1031 DEBUG [TOOL_EXEC_DEBUG] Tool execution result: 200    llm.py:1031
           DEBUG    [23:51:30] llm.py:1038 DEBUG [TOOL_EXEC_DEBUG] Display message with result:  llm.py:1038
                    Agent Agent called function 'multiply' with arguments: {'a': '100', 'b':                
                    '2'}                                                                                    
                    Function returned: 200                                                                  
           DEBUG    [23:51:30] llm.py:1043 DEBUG [TOOL_EXEC_DEBUG] About to display tool call    llm.py:1043
                    with message: Agent Agent called function 'multiply' with arguments: {'a':              
                    '100', 'b': '2'}                                                                        
                    Function returned: 200                                                                  
           DEBUG    [23:51:30] main.py:224 DEBUG display_tool_call called with message: "Agent   main.py:224
                    Agent called function 'multiply' with arguments: {'a': '100', 'b':                      
                    '2'}\nFunction returned: 200"                                                           
           DEBUG    [23:51:30] main.py:231 DEBUG Cleaned message in display_tool_call: "Agent    main.py:231
                    Agent called function 'multiply' with arguments: {'a': '100', 'b':                      
                    '2'}\nFunction returned: 200"                                                           
╭────────────────────────────────── Tool Call ──────────────────────────────────╮
│ Agent Agent called function 'multiply' with arguments: {'a': '100', 'b': '2'} │
│ Function returned: 200                                                        │
╰───────────────────────────────────────────────────────────────────────────────╯
           DEBUG    [23:51:30] agent.py:1296 DEBUG Agent.chat completed in 4.10 seconds        agent.py:1296
           DEBUG    [23:51:30] telemetry.py:130 DEBUG Agent execution tracked: success=True telemetry.py:130
           DEBUG    [23:51:30] telemetry.py:130 DEBUG Agent execution tracked: success=True telemetry.py:130

           DEBUG    [23:51:30] telemetry.py:263 DEBUG Telemetry flush: {'enabled': True,    telemetry.py:263
                    'session_id': '4abafad38cbc16ef', 'metrics': {'agent_executions': 2,                    
                    'task_completions': 0, 'tool_calls': 9, 'errors': 0}, 'environment':                    
                    {'python_version': '3.11.11', 'os_type': 'Darwin', 'framework_version':                 
                    'unknown'}}       

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions