get_prompt_router¶
Operation¶
get_prompt_router
async
¶
get_prompt_router(input: GetPromptRouterInput, plugins: list[Plugin] | None = None) -> GetPromptRouterOutput
Retrieves details about a prompt router.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
GetPromptRouterInput
|
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 |
|---|---|
GetPromptRouterOutput
|
An instance of |
Input¶
GetPromptRouterInput
dataclass
¶
Output¶
GetPromptRouterOutput
dataclass
¶
Dataclass for GetPromptRouterOutput structure.
Attributes¶
created_at
class-attribute
instance-attribute
¶
created_at: datetime | None = None
When the router was created.
description
class-attribute
instance-attribute
¶
description: str | None = field(repr=False, default=None)
The router's description.
fallback_model
instance-attribute
¶
fallback_model: PromptRouterTargetModel
The router's fallback model.
routing_criteria
instance-attribute
¶
routing_criteria: RoutingCriteria
The router's routing criteria.
updated_at
class-attribute
instance-attribute
¶
updated_at: datetime | None = None
When the router was updated.