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])
| 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, |
nothing calls this directly
no outgoing calls
no test coverage detected