Skip to content

list_code_interpreters

Operation

list_code_interpreters

list_code_interpreters(request: ListCodeInterpretersInput | ListCodeInterpretersInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[ListCodeInterpretersInputDict]) -> ListCodeInterpretersOutput

Lists all custom code interpreters in your account.

Parameters:

Name Type Description Default
request ListCodeInterpretersInput | ListCodeInterpretersInputDict | 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[ListCodeInterpretersInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
ListCodeInterpretersOutput

An instance of ListCodeInterpretersOutput.

list_code_interpreters async

list_code_interpreters(request: ListCodeInterpretersInput | ListCodeInterpretersInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[ListCodeInterpretersInputDict]) -> ListCodeInterpretersOutput

Lists all custom code interpreters in your account.

Parameters:

Name Type Description Default
request ListCodeInterpretersInput | ListCodeInterpretersInputDict | 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[ListCodeInterpretersInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
ListCodeInterpretersOutput

An instance of ListCodeInterpretersOutput.

Input

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

ListCodeInterpretersInputDict

Bases: TypedDict

Dictionary form of ListCodeInterpretersInput.

Attributes

max_results instance-attribute
max_results: int | None

The maximum number of results to return in the response.

next_token instance-attribute
next_token: str | None

A token to retrieve the next page of results.

type instance-attribute
type: str | None

The type of code interpreters to list.

ListCodeInterpretersInput dataclass

Bases: _SerdeShape

Dataclass for ListCodeInterpretersInput structure.

Attributes

max_results class-attribute instance-attribute
max_results: int | None = ...

The maximum number of results to return in the response.

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

A token to retrieve the next page of results.

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

The type of code interpreters to list.

Output

ListCodeInterpretersOutput dataclass

Bases: _SerdeShape

Dataclass for ListCodeInterpretersOutput structure.

Attributes

code_interpreter_summaries instance-attribute
code_interpreter_summaries: list[CodeInterpreterSummary]

The list of code interpreter summaries.

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

A token to retrieve the next page of results.

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.