Skip to content

Conversation

3coins
Copy link
Collaborator

@3coins 3coins commented Jul 16, 2025

This PR adds browser and code interpreter toolkits based on the Amazon Bedrock AgentCore API.

Browser Toolkit

  • Provides tools for automated web browsing and interaction
  • Features thread-aware browser session management
  • Capabilities include URL navigation, clicking elements, text extraction
  from langchain_aws.tools import create_browser_toolkit

  # Create browser toolkit
  toolkit, browser_tools = create_browser_toolkit(region="us-west-2")

  # Available tools
  print([tool.name for tool in browser_tools])
  # ['navigate_browser', 'click_element', 'extract_text', 'extract_hyperlinks', ...]

Code Interpreter Toolkit

  • Enables secure code execution in managed AWS environments
  • Thread-aware code interpreter session management
  • Capabilities include Python code execution, shell commands, file operations
  from langchain_aws.tools import create_code_interpreter_toolkit

  # Create code interpreter toolkit
  toolkit, code_tools = await create_code_interpreter_toolkit(region="us-west-2")

  # Available tools
  print([tool.name for tool in code_tools])
  # ['execute_code', 'execute_command', 'read_files', 'list_files', 'delete_files', ...]

@3coins 3coins marked this pull request as ready for review July 16, 2025 19:47
@3coins
Copy link
Collaborator Author

3coins commented Jul 16, 2025

@michaelnchin
Thanks for reviewing, made the suggested changes.

Copy link
Collaborator

@michaelnchin michaelnchin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@michaelnchin michaelnchin merged commit 82bb896 into langchain-ai:main Jul 22, 2025
12 checks passed
michaelnchin added a commit that referenced this pull request Jul 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants