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

Method set_parameter

camel/toolkits/function_tool.py:582–595  ·  view source on GitHub ↗

r"""Sets the schema for a specific parameter in the function schema. Args: param_name (str): The name of the parameter to set the schema for. value (Dict[str, Any]): The schema to set for the parameter.

(self, param_name: str, value: Dict[str, Any])

Source from the content-addressed store, hash-verified

580 ]
581
582 def set_parameter(self, param_name: str, value: Dict[str, Any]):
583 r"""Sets the schema for a specific parameter in the function schema.
584
585 Args:
586 param_name (str): The name of the parameter to set the schema for.
587 value (Dict[str, Any]): The schema to set for the parameter.
588 """
589 try:
590 JSONValidator.check_schema(value)
591 except SchemaError as e:
592 raise e
593 self.openai_tool_schema["function"]["parameters"]["properties"][
594 param_name
595 ] = value
596
597 def synthesize_openai_tool_schema(
598 self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected