Skip to content

Feature request: Add "think" tool capability for Anthropic and Bedrock #339

Description

@rjesh-git

Use case

Implement Anthropic's "think" tool functionality to provide a dedicated space for structured thinking during complex tasks. The tool allows for better policy compliance, sequential decision making, and analysis of tool outputs.

Related #320

Solution/User Experience

Bedrock Implementation

# Configure reasoning parameters with a 2000 token budget
reasoning_config = {
    "thinking": {
        "type": "enabled",
        "budget_tokens": 2000
    }
}
response = client.converse(
    modelId=model_id,
    messages=conversation,
    additionalModelRequestFields=reasoning_config
)

Alternative solutions

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions