

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# 작업 그룹의 에이전트에 대한 컴퓨터 사용 도구 지정
<a name="agent-computer-use-create-action-group"></a>

 [CreateAgentActionGroup](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgentActionGroup.html) 또는 [UpdateAgentActionGroup](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentActionGroup.html) API 작업에서 에이전트가 사용할 수 있는 도구를 지정할 수 있습니다. 인라인 에이전트의 경우 [InvokeInlineAgent](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeInlineAgent.html) API 작업에서 도구를 지정합니다.

작업 그룹의 parentActionGroupSignature에서 다음 값 중에서 도구 유형을 지정합니다.
+ ANTHROPIC.Computer
+ ANTHROPIC.TextEditor 
+ ANTHROPIC.Bash

다음 코드 예제에서는 에이전트가 사용할 `ANTHROPIC.Computer` 도구를 지정하는 작업 그룹을 생성하는 방법을 보여줍니다.

```
def create_agent_action_group(client, agent_id, agent_version):
"""
Creates an action group that specifies the ANTHROPIC.Computer tool for the agent. 

Args:
    client: Boto3 bedrock-agent client
    agent_id (str): ID of the agent
    agent_version (str): Version of the agent

Returns:
    dict: Response from create_agent_action_group API call
"""
try:
    response = client.create_agent_action_group(
        agentId=agent_id,
        agentVersion=agent_version,
        actionGroupName="my_computer",
        actionGroupState="ENABLED",
        parentActionGroupSignature="ANTHROPIC.Computer",
        parentActionGroupSignatureParams={
            "type": "computer_20241022"
        }
    )
    return response
except ClientError as e:
    print(f"Error: {e}")
```