update_agent_action_group
¶
update_agent_action_group(
agent_id: Id,
agent_version: DraftVersion,
action_group_id: Id,
action_group_name: Name,
*,
config_overrides: Optional[BedrockAgentClientConfig] = None,
description: Optional[Description] = None,
parent_action_group_signature: Optional[ActionGroupSignature] = None,
parent_action_group_signature_params: Optional[ActionGroupSignatureParams] = None,
action_group_executor: Optional[ActionGroupExecutor] = None,
action_group_state: Optional[ActionGroupState] = None,
api_schema: Optional[APISchema] = None,
function_schema: Optional[FunctionSchema] = None,
) -> UpdateAgentActionGroupResponse
Updates the configuration for an action group for an agent.
Parameters:
-
agent_id(Id) –The unique identifier of the agent for which to update the action group.
-
agent_version(DraftVersion) –The unique identifier of the agent version for which to update the action group.
-
action_group_id(Id) –The unique identifier of the action group.
-
action_group_name(Name) –Specifies a new name for the action group.
-
description(Optional[Description], default:None) –Specifies a new name for the action group.
-
parent_action_group_signature(Optional[ActionGroupSignature], default:None) –Update the built-in or computer use action for this action group. If you specify a value, you must leave the
description,apiSchema, andactionGroupExecutorfields empty for this action group.-
To allow your agent to request the user for additional information when trying to complete a task, set this field to
AMAZON.UserInput. -
To allow your agent to generate, run, and troubleshoot code when trying to complete a task, set this field to
AMAZON.CodeInterpreter. -
To allow your agent to use an Anthropic computer use tool, specify one of the following values.
Computer use is a new Anthropic Claude model capability (in beta) available with Anthropic Claude 3.7 Sonnet and Claude 3.5 Sonnet v2 only. When operating computer use functionality, we recommend taking additional security precautions, such as executing computer actions in virtual environments with restricted data access and limited internet connectivity. For more information, see Configure an Amazon Bedrock Agent to complete tasks with computer use tools.
-
ANTHROPIC.Computer- Gives the agent permission to use the mouse and keyboard and take screenshots. -
ANTHROPIC.TextEditor- Gives the agent permission to view, create and edit files. -
ANTHROPIC.Bash- Gives the agent permission to run commands in a bash shell.
-
During orchestration, if your agent determines that it needs to invoke an API in an action group, but doesn't have enough information to complete the API request, it will invoke this action group instead and return an Observation reprompting the user for more information.
-
-
parent_action_group_signature_params(Optional[ActionGroupSignatureParams], default:None) –The configuration settings for a computer use action.
Computer use is a new Anthropic Claude model capability (in beta) available with Claude 3.7 Sonnet and Claude 3.5 Sonnet v2 only. For more information, see Configure an Amazon Bedrock Agent to complete tasks with computer use tools.
-
action_group_executor(Optional[ActionGroupExecutor], default:None) –The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action.
-
action_group_state(Optional[ActionGroupState], default:None) –Specifies whether the action group is available for the agent to invoke or not when sending an InvokeAgent request.
-
api_schema(Optional[APISchema], default:None) –Contains either details about the S3 object containing the OpenAPI schema for the action group or the JSON or YAML-formatted payload defining the schema. For more information, see Action group OpenAPI schemas.
-
function_schema(Optional[FunctionSchema], default:None) –Contains details about the function schema for the action group or the JSON or YAML-formatted payload defining the schema.
Raises:
-
AccessDeniedException–The request is denied because of missing access permissions.
-
ConflictException–There was a conflict performing an operation.
-
InternalServerException–An internal server error occurred. Retry your request.
-
ResourceNotFoundException–The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
-
ServiceQuotaExceededException–The number of requests exceeds the service quota. Resubmit your request later.
-
ThrottlingException–The number of requests exceeds the limit. Resubmit your request later.
-
ValidationException–Input validation failed. Check your request parameters and retry the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock_agent/_services/bedrock_agent.py
1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 | |