Pydantic Models
Smarter API MCPClient Manifest Constants.
Smarter API Manifest - MCPClient.metadata.
- class smarter.apps.mcpclient.manifest.models.mcpclient.metadata.SAMMCPClientMetadata(*, name: str, description: str | None, version: str | None, tags: List[str] | None = <factory>, annotations: List[dict[str, str | int | float | bool | ~datetime.date | ~datetime.datetime | ~decimal.Decimal | ~uuid.UUID | bytes | list | dict]] | None=<factory>)[source]
Bases:
AbstractSAMMetadataBaseSmarter API MCPClient Manifest - Metadata class.
Smarter API Manifest - MCPClient.spec.
- class smarter.apps.mcpclient.manifest.models.mcpclient.spec.SAMMCPClientSpec(*, config: SAMMCPClientSpecConfig)[source]
Bases:
AbstractSAMSpecBaseSmarter API MCPClient Manifest MCPClient.spec.
- config: SAMMCPClientSpecConfig
- class smarter.apps.mcpclient.manifest.models.mcpclient.spec.SAMMCPClientSpecConfig(*, transport: MCPTransport, endpoint_url: str | None = '', command: str | None = '', config: dict | None = <factory>, auth_type: MCPAuthType = MCPAuthType.NONE, credentials: str, allowed_tools: list[str] | None = <factory>, allowed_resources: list[str] | None = <factory>, is_active: bool = True, priority: Annotated[int, ~annotated_types.Ge(ge=0)] = 100)[source]
Bases:
AbstractSAMSpecBaseSmarter API MCPClient Manifest MCPClient.spec.config.
- auth_type: MCPAuthType
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'from_attributes': True, 'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Return type:
- Parameters:
self – The BaseModel instance.
context – The context.
- transport: MCPTransport
Smarter API Manifest - MCPClient.status.
- class smarter.apps.mcpclient.manifest.models.mcpclient.status.SAMMCPClientStatus(*, recordLocator: str, created: datetime, modified: datetime, accountNumber: str, username: str)[source]
Bases:
AbstractSAMStatusBaseSmarter API MCPClient Manifest - Status class.
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'from_attributes': True, 'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Return type:
- Parameters:
self – The BaseModel instance.
context – The context.
Smarter API MCPClient Manifest.
- class smarter.apps.mcpclient.manifest.models.mcpclient.model.SAMMCPClient(*, apiVersion: str, kind: str, metadata: SAMMCPClientMetadata, spec: SAMMCPClientSpec, status: SAMMCPClientStatus | None = None)[source]
Bases:
AbstractSAMBaseSmarter API Manifest - MCPClient.
- metadata: SAMMCPClientMetadata
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'from_attributes': True, 'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Return type:
- Parameters:
self – The BaseModel instance.
context – The context.
- spec: SAMMCPClientSpec
- status: SAMMCPClientStatus | None