Skip to content

Skill use in v0.71.0 doesn't work #1048

@aivisbr

Description

@aivisbr

According to the API documentation, following code example I could use to run Agent Skills:

import anthropic

client = anthropic.Anthropic()

response = client.messages.create(
    model="claude-sonnet-4-5-20250929",
    max_tokens=4096,
    betas=["code-execution-2025-08-25", "skills-2025-10-02"],
    container={
        "skills": [
            {
                "type": "anthropic",
                "skill_id": "pptx",
                "version": "latest"
            }
        ]
    },
    messages=[{
        "role": "user",
        "content": "Create a presentation about renewable energy"
    }],
    tools=[{
        "type": "code_execution_20250825",
        "name": "code_execution"
    }]
)

But this code doesn't work in version 0.71.0, because I got a TypeError: "TypeError: Messages.create() got an unexpected keyword argument 'container'". It looks like this version still doesn't fully support Agent Skills. Am I right?

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions