UpdateAgentRequestBody

pydantic model openapi_client.models.update_agent_request_body.UpdateAgentRequestBody

CUSTOM agent update body (no action). SYSTEM model-only updates send ModelId; see UpdateSystemAgentModelRequestBody for the documented subset. Enable/disable ignores most fields.

Fields:
field description: Optional[Annotated[str, Field(strict=True, max_length=200)]] = None (alias 'Description')
field display_name: Optional[Annotated[str, Field(strict=True, max_length=255)]] = None (alias 'DisplayName')
field model_id: Optional[StrictStr] = None (alias 'ModelId')

Updated model ID. For SYSTEM agents with no action, this is the only allowed field.

field python_version: Optional[StrictStr] = None (alias 'PythonVersion')
field entry_point: Optional[StrictStr] = None (alias 'EntryPoint')

Entry point file; must end with .py when provided.

field session_settings: Optional[AgentSessionSettings] = None (alias 'SessionSettings')
field cost_tags: Optional[List[AgentCostTag]] = None (alias 'CostTags')
field resource_access_metadata: Optional[AgentResourceAccessMetadata] = None (alias 'ResourceAccessMetadata')
to_str()

Returns the string representation of the model using alias

Return type:

str

to_json()

Returns the JSON representation of the model using alias

Return type:

str

classmethod from_json(json_str)

Create an instance of UpdateAgentRequestBody from a JSON string

Return type:

Optional[Self]

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True):

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

Return type:

Dict[str, Any]

classmethod from_dict(obj)

Create an instance of UpdateAgentRequestBody from a dict

Return type:

Optional[Self]