GetAgentDetailsResponse

class openapi_client.models.get_agent_details_response.GetAgentDetailsResponse(**data)[source]

Bases: BaseModel

agent_id: Optional[StrictStr]
agent_name: Optional[StrictStr]
agent_status: Optional[StrictStr]
description: Optional[StrictStr]
instruction: Optional[StrictStr]
agent_type: Optional[StrictStr]
agent_version: Optional[StrictStr]
model_id: Optional[StrictStr]
reference_id: Optional[StrictStr]
agent_alias_id: Optional[StrictStr]
message: Optional[StrictStr]
access_type: Optional[StrictStr]
created_by: Optional[StrictStr]
creation_time: Optional[StrictStr]
last_modified_by: Optional[StrictStr]
last_modified_time: Optional[StrictStr]
is_enabled: Optional[StrictBool]
agent_sessions: Optional[Dict[str, Any]]
agent_response_type: Optional[StrictStr]
action_group_id: Optional[StrictStr]
tools: Optional[List[AgentToolObject]]
resource_access_metadata: Optional[GetAgentDetailsResponseResourceAccessMetadata]
presigned_url: Optional[StrictStr]
download_url: Optional[StrictStr]
script_exists: Optional[StrictBool]
s3_location: Optional[StrictStr]
expires_in: Optional[StrictInt]
logs_count: Optional[StrictInt]
logs: Optional[List[Dict[str, Any]]]
time_range: Optional[GetAgentDetailsResponseTimeRange]
model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

to_str()[source]

Returns the string representation of the model using alias

Return type:

str

to_json()[source]

Returns the JSON representation of the model using alias

Return type:

str

classmethod from_json(json_str)[source]

Create an instance of GetAgentDetailsResponse from a JSON string

Return type:

Optional[Self]

to_dict()[source]

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)[source]

Create an instance of GetAgentDetailsResponse from a dict

Return type:

Optional[Self]

model_fields: ClassVar[dict[str, FieldInfo]] = {'access_type': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='AccessType', alias_priority=2), 'action_group_id': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='ActionGroupId', alias_priority=2), 'agent_alias_id': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='AgentAliasId', alias_priority=2), 'agent_id': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='AgentId', alias_priority=2), 'agent_name': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='AgentName', alias_priority=2), 'agent_response_type': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='AgentResponseType', alias_priority=2), 'agent_sessions': FieldInfo(annotation=Union[Dict[str, Any], NoneType], required=False, alias='AgentSessions', alias_priority=2), 'agent_status': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='AgentStatus', alias_priority=2), 'agent_type': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='AgentType', alias_priority=2), 'agent_version': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='AgentVersion', alias_priority=2), 'created_by': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='CreatedBy', alias_priority=2), 'creation_time': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='CreationTime', alias_priority=2), 'description': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='Description', alias_priority=2), 'download_url': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='DownloadUrl', alias_priority=2, description='Script download URL (present when action=retrieve-script)'), 'expires_in': FieldInfo(annotation=Union[Annotated[int, Strict(strict=True)], NoneType], required=False, alias='ExpiresIn', alias_priority=2, description='URL expiration time in seconds (present when action=retrieve-script)'), 'instruction': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='Instruction', alias_priority=2), 'is_enabled': FieldInfo(annotation=Union[Annotated[bool, Strict(strict=True)], NoneType], required=False, alias='IsEnabled', alias_priority=2), 'last_modified_by': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='LastModifiedBy', alias_priority=2), 'last_modified_time': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='LastModifiedTime', alias_priority=2), 'logs': FieldInfo(annotation=Union[List[Dict[str, Any]], NoneType], required=False, alias='Logs', alias_priority=2, description='List of logs for the agent.'), 'logs_count': FieldInfo(annotation=Union[Annotated[int, Strict(strict=True)], NoneType], required=False, alias='LogsCount', alias_priority=2, description='Number of logs for the agent.'), 'message': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='Message', alias_priority=2), 'model_id': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='ModelId', alias_priority=2), 'presigned_url': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='PresignedUrl', alias_priority=2, description='Generated presigned URL (present when action=generate_presigned_url)'), 'reference_id': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='ReferenceId', alias_priority=2), 'resource_access_metadata': FieldInfo(annotation=Union[GetAgentDetailsResponseResourceAccessMetadata, NoneType], required=False, alias='ResourceAccessMetadata', alias_priority=2), 's3_location': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='S3Location', alias_priority=2, description='S3 location of the script (present when action=retrieve-script)'), 'script_exists': FieldInfo(annotation=Union[Annotated[bool, Strict(strict=True)], NoneType], required=False, alias='ScriptExists', alias_priority=2, description='Whether the script exists (present when action=retrieve-script)'), 'time_range': FieldInfo(annotation=Union[GetAgentDetailsResponseTimeRange, NoneType], required=False, alias='TimeRange', alias_priority=2), 'tools': FieldInfo(annotation=Union[List[AgentToolObject], NoneType], required=False, alias='Tools', alias_priority=2)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

model_post_init(__context)

This function is meant to behave like a BaseModel method to initialise private attributes.

It takes context as an argument since that’s what pydantic-core passes when calling it.

Parameters:
  • self (BaseModel) – The BaseModel instance.

  • __context (Any) – The context.

Return type:

None