Describes the agentic configuration of the specified WorkSpace, including its models, agent runtime, connectors, contexts, enforced policies, and agent health.
Parameters:
-
workspace_id
(WorkspaceId)
–
The identifier of the WorkSpace.
Raises:
Examples:
Example – Getting the agentic configuration of a WorkSpace
The following example gets the models, agent runtime, connectors, contexts, enforced policies, and agent health of a WorkSpace.
>>> await client.get_agentic_workspace_configuration(workspace_id='ws-dk1example1')
Source code in docs_src/capo_workspaces/_services/async_work_spaces.py
| async def get_agentic_workspace_configuration(
self,
workspace_id: "capo_workspaces.types.workspace_id.WorkspaceId",
*,
config_overrides: Optional[AsyncWorkSpacesClientConfig] = None,
) -> "capo_workspaces.types.get_agentic_workspace_configuration_result.GetAgenticWorkspaceConfigurationResult":
"""<p>Describes the agentic configuration of the specified WorkSpace, including its models, agent runtime, connectors, contexts, enforced policies, and agent health.</p>
Args:
workspace_id: <p>The identifier of the WorkSpace.</p>
Raises:
capo_workspaces.errors.access_denied_exception.AccessDeniedException: <p>The user is not authorized to access a resource.</p>
capo_workspaces.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource could not be found.</p>
capo_workspaces.errors.throttling_exception.ThrottlingException: <p>The request was throttled. Retry the request with exponential backoff.</p>
capo_workspaces.errors.validation_exception.ValidationException: <p>Your request failed validation. Check the error message for the parameter that isn't valid.</p>
capo_workspaces.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
Example – Getting the agentic configuration of a WorkSpace
The following example gets the models, agent runtime, connectors, contexts, enforced policies, and agent health of a WorkSpace.
>>> await client.get_agentic_workspace_configuration(workspace_id='ws-dk1example1')
"""
async def _handler(
req: "AsyncOperationRequest[capo_workspaces.types.get_agentic_workspace_configuration_request.GetAgenticWorkspaceConfigurationRequest]",
) -> AsyncOperationResponse[
"capo_workspaces.types.get_agentic_workspace_configuration_result.GetAgenticWorkspaceConfigurationResult"
]:
if req.options.protocol == "awsJson1_1":
import capo_workspaces._operations.workspaces_service.aws_json1_1.get_agentic_workspace_configuration
(
output,
http_response,
) = await capo_workspaces._operations.workspaces_service.aws_json1_1.get_agentic_workspace_configuration.async_get_agentic_workspace_configuration(
req.options, req.input
)
elif req.options.protocol == "rpcv2Cbor":
import capo_workspaces._operations.workspaces_service.rpcv2_cbor.get_agentic_workspace_configuration
(
output,
http_response,
) = await capo_workspaces._operations.workspaces_service.rpcv2_cbor.get_agentic_workspace_configuration.async_get_agentic_workspace_configuration(
req.options, req.input
)
else:
raise ValueError(f"unknown protocol {req.options.protocol!r}")
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetAgenticWorkspaceConfiguration")
)
input_: capo_workspaces.types.get_agentic_workspace_configuration_request.GetAgenticWorkspaceConfigurationRequest = {
"workspace_id": workspace_id
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|