5 lines
168 B
Python
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}
|
||
|
|
|