Skip to content

delete_agent_version

Operation

delete_agent_version

delete_agent_version(request: DeleteAgentVersionInput | DeleteAgentVersionInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[DeleteAgentVersionInputDict]) -> DeleteAgentVersionOutput

Deletes a version of an agent.

Parameters:

Name Type Description Default
request DeleteAgentVersionInput | DeleteAgentVersionInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None
**kwargs Unpack[DeleteAgentVersionInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
DeleteAgentVersionOutput

An instance of DeleteAgentVersionOutput.

delete_agent_version async

delete_agent_version(request: DeleteAgentVersionInput | DeleteAgentVersionInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[DeleteAgentVersionInputDict]) -> DeleteAgentVersionOutput

Deletes a version of an agent.

Parameters:

Name Type Description Default
request DeleteAgentVersionInput | DeleteAgentVersionInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None
**kwargs Unpack[DeleteAgentVersionInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
DeleteAgentVersionOutput

An instance of DeleteAgentVersionOutput.

Input

Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.

DeleteAgentVersionInputDict

Bases: TypedDict

Dictionary form of DeleteAgentVersionInput.

Attributes

agent_id instance-attribute
agent_id: Required[str]

The unique identifier of the agent that the version belongs to.

agent_version instance-attribute
agent_version: Required[str]

The version of the agent to delete.

skip_resource_in_use_check instance-attribute
skip_resource_in_use_check: bool | None

By default, this value is false and deletion is stopped if the resource is in use. If you set it to true, the resource will be deleted even if the resource is in use.

DeleteAgentVersionInput dataclass

Bases: _SerdeShape

Dataclass for DeleteAgentVersionInput structure.

Attributes

agent_id class-attribute instance-attribute
agent_id: str | None = ...

The unique identifier of the agent that the version belongs to.

agent_version class-attribute instance-attribute
agent_version: str | None = ...

The version of the agent to delete.

skip_resource_in_use_check class-attribute instance-attribute
skip_resource_in_use_check: bool = ...

By default, this value is false and deletion is stopped if the resource is in use. If you set it to true, the resource will be deleted even if the resource is in use.

Output

DeleteAgentVersionOutput dataclass

Bases: _SerdeShape

Dataclass for DeleteAgentVersionOutput structure.

Attributes

agent_id instance-attribute
agent_id: str

The unique identifier of the agent that the version belongs to.

agent_status instance-attribute
agent_status: str

The status of the agent version.

agent_version instance-attribute
agent_version: str

The version that was deleted.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.