MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / _create_mol

Function _create_mol

camel/toolkits/function_tool.py:143–144  ·  view source on GitHub ↗
(name, field)

Source from the content-addressed store, hash-verified

141 # Applying `create_model()` directly will result in a mypy error,
142 # create an alias to avoid this.
143 def _create_mol(name, field):
144 return create_model(name, **field)
145
146 model = _create_mol(to_pascal(func.__name__), fields)
147 parameters_dict = get_pydantic_object_schema(model)

Callers 1

get_openai_tool_schemaFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected