agents-course icon indicating copy to clipboard operation
agents-course copied to clipboard

[HANDS-ON BUG] Runtime type error on first_agent_template

Open lukasmenzel95 opened this issue 1 year ago • 0 comments

Describe the bug The first agent template, even when freshly copied, does build but is unable to accept any message in the app. the container errors in:

File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 986, in f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}" File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 993, in _json_schema_to_python_type f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}" File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 939, in json_schema_to_python_type type = get_type(schema) File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 898, in get_type if "const" in schema: TypeError: argument of type 'bool' is not iterable

To Reproduce Start the first_agent_template and try to send a message to the bot

Screenshots

Image

Additional context None

lukasmenzel95 avatar Apr 08 '25 15:04 lukasmenzel95