list_prompt_routers¶
Operation¶
list_prompt_routers
async
¶
list_prompt_routers(input: ListPromptRoutersInput, plugins: list[Plugin] | None = None) -> ListPromptRoutersOutput
Retrieves a list of prompt routers.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
ListPromptRoutersInput
|
An instance of |
required |
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
|
Returns:
| Type | Description |
|---|---|
ListPromptRoutersOutput
|
An instance of |
Input¶
ListPromptRoutersInput
dataclass
¶
Dataclass for ListPromptRoutersInput structure.
Attributes¶
max_results
class-attribute
instance-attribute
¶
max_results: int | None = None
The maximum number of prompt routers to return in one page of results.
next_token
class-attribute
instance-attribute
¶
next_token: str | None = None
Specify the pagination token from a previous request to retrieve the next page of results.
type
class-attribute
instance-attribute
¶
type: PromptRouterType = PromptRouterType('default')
The type of the prompt routers, such as whether it's default or custom.
Output¶
ListPromptRoutersOutput
dataclass
¶
Dataclass for ListPromptRoutersOutput structure.
Attributes¶
next_token
class-attribute
instance-attribute
¶
next_token: str | None = None
Specify the pagination token from a previous request to retrieve the next page of results.
prompt_router_summaries
class-attribute
instance-attribute
¶
prompt_router_summaries: list[PromptRouterSummary] | None = None
A list of prompt router summaries.