Skip to content

Invalid schema for function #1162

@wmm228

Description

@wmm228

Bug Description

ChatCompletion(id=None, choices=None, created=None, model=None, object=None, service_tier=None, system_fingerprint=None, usage=None, error={'message': "Invalid schema for function 'mcp_home_zz_conda_envs_open_manus_bin_python_str_replace_editor': [] is not of type 'object', 'boolean'. (request id: 20250611110758283206479dq0R9awt) (request id: 2025061111075832763207s5RDjPXL)", 'type': 'invalid_request_error', 'param': 'tools[2].function.parameters', 'code': 'invalid_function_parameters'})

How can I solve this type error that always occurs in run_mcp.py? It has been bothering me for a long time

Bug solved method

It hasn't been resolved yet

Environment information

  • System version:
  • Python version:
  • OpenManus version or branch:
  • Installation method (e.g., pip install -r requirements.txt or pip install -e .):

Extra information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinginactive

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions