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

Method get_parameter

camel/toolkits/function_tool.py:568–580  ·  view source on GitHub ↗

r"""Gets the schema for a specific parameter from the function schema. Args: param_name (str): The name of the parameter to get the schema. Returns: Dict[str, Any]: The schema of the specified parameter.

(self, param_name: str)

Source from the content-addressed store, hash-verified

566 ]["description"] = description
567
568 def get_parameter(self, param_name: str) -> Dict[str, Any]:
569 r"""Gets the schema for a specific parameter from the function schema.
570
571 Args:
572 param_name (str): The name of the parameter to get the schema.
573
574 Returns:
575 Dict[str, Any]: The schema of the specified parameter.
576 """
577 self.validate_openai_tool_schema(self.openai_tool_schema)
578 return self.openai_tool_schema["function"]["parameters"]["properties"][
579 param_name
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.

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected