nat.data_models.openai_mcp#
Classes#
Enum to specify if approval is required for tool usage in the OpenAI MCP schema. |
|
Represents a tool in the OpenAI MCP schema. |
Module Contents#
- class MCPApprovalRequiredEnum#
-
Enum to specify if approval is required for tool usage in the OpenAI MCP schema.
Initialize self. See help(type(self)) for accurate signature.
- NEVER = 'never'#
- ALWAYS = 'always'#
- AUTO = 'auto'#
- class OpenAIMCPSchemaTool(/, **data: Any)#
Bases:
pydantic.BaseModelRepresents a tool in the OpenAI MCP schema.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- require_approval: MCPApprovalRequiredEnum = None#
- model_config#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].