> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Bedrock AgentCore

> AWS Bedrock AgentCore tools for code interpretation and browser automation

```mermaid theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
graph LR
    U[Input] --> A[Agent]
    A --> T[Tool]
    T --> O[Output]

    classDef agent fill:#8B0000,color:#fff
    classDef tool fill:#189AB4,color:#fff

    class A agent
    class U,O tool
    class T tool
```

# Bedrock AgentCore

AWS Bedrock AgentCore provides code interpretation and browser automation capabilities.

## Installation

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
npm install praisonai-ts
```

## Code Interpreter

Execute Python code in a sandboxed environment:

```typescript theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
import { Agent, bedrockCodeInterpreter } from 'praisonai-ts';

const codeInterpreter = bedrockCodeInterpreter({
  // Optional configuration
});

const agent = new Agent({
  name: 'CodeAgent',
  instructions: 'You help with data analysis using Python code.',
  tools: [codeInterpreter],
});

const response = await agent.chat('Calculate the factorial of 10');
```

## Browser Tools

### Navigate

```typescript theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
import { bedrockBrowserNavigate } from 'praisonai-ts';

const navigate = bedrockBrowserNavigate();

const agent = new Agent({
  name: 'BrowserAgent',
  instructions: 'You help navigate websites.',
  tools: [navigate],
});
```

### Click

```typescript theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
import { bedrockBrowserClick } from 'praisonai-ts';

const click = bedrockBrowserClick();
```

### Fill Form

```typescript theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
import { bedrockBrowserFill } from 'praisonai-ts';

const fill = bedrockBrowserFill();
```

## Configuration

```typescript theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
interface CodeInterpreterConfig {
  timeout?: number;      // Execution timeout in ms
  maxMemory?: number;    // Max memory in MB
}

interface BrowserConfig {
  headless?: boolean;    // Run in headless mode
  timeout?: number;      // Navigation timeout
}
```

## Environment Variables

| Variable                | Required | Description    |
| ----------------------- | -------- | -------------- |
| `AWS_ACCESS_KEY_ID`     | Yes      | AWS access key |
| `AWS_SECRET_ACCESS_KEY` | Yes      | AWS secret key |
| `AWS_REGION`            | Yes      | AWS region     |

## Related

<CardGroup cols={2}>
  <Card title="Code Execution" icon="book" href="/docs/js/tools/code-execution">
    General code execution
  </Card>

  <Card title="Computer Use" icon="book" href="/docs/js/computer-use">
    Desktop automation
  </Card>
</CardGroup>
