hendrik/scripts/gadget.py
2026-05-02 21:08:42 +07:00

5 lines
168 B
Python

def tools_mapping(schema, handler, name=None):
tool_name = name or schema["function"]["name"]
return {"name": tool_name, "schema": schema, "handler": handler}