Jump to content

Connect Leeroopedia MCP: Equip your AI agents to search best practices, build plans, verify code, diagnose failures, and look up hyperparameter defaults.

Implementation:Anthropics Anthropic sdk python SkillCreateResponse

From Leeroopedia
Knowledge Sources
Domains API Types, Beta, Skills
Last Updated 2026-02-15 12:00 GMT

Overview

SkillCreateResponse is a Pydantic model that represents the response returned when a skill is created via the beta Skills API. It contains metadata about the newly created skill, including its identifier, timestamps, source, and version information.

Description

The SkillCreateResponse class extends BaseModel and encapsulates the server response for a skill creation operation. It includes the following fields:

  • id -- A unique string identifier for the skill. The format and length may change over time.
  • created_at -- An ISO 8601 timestamp of when the skill was created.
  • updated_at -- An ISO 8601 timestamp of when the skill was last updated.
  • display_title -- An optional human-readable label for the skill. This is not included in prompts sent to the model.
  • latest_version -- An optional string representing the most recent version of the skill.
  • source -- Indicates who created the skill: "custom" for user-created skills, or "anthropic" for Anthropic-created skills.
  • type -- The object type, always "skill" for skills.

Usage

Use SkillCreateResponse when working with the beta Skills API to create reusable skill definitions. This response model is returned by the skill creation endpoint and provides the identifiers and metadata needed to reference, update, or manage skills after creation.

Code Reference

Source Location

Signature

class SkillCreateResponse(BaseModel):
    id: str
    created_at: str
    display_title: Optional[str] = None
    latest_version: Optional[str] = None
    source: str
    type: str
    updated_at: str

Import

from anthropic.types.beta import SkillCreateResponse

I/O Contract

Fields

Field Type Required Description
id str Yes Unique identifier for the skill.
created_at str Yes ISO 8601 timestamp of when the skill was created.
display_title Optional[str] No Human-readable label for the skill. Not included in model prompts.
latest_version Optional[str] No The most recent version identifier for the skill.
source str Yes Source of the skill: "custom" or "anthropic".
type str Yes Object type. Always "skill".
updated_at str Yes ISO 8601 timestamp of when the skill was last updated.

Usage Examples

import anthropic

client = anthropic.Anthropic()

# Create a skill via the beta Skills API
response = client.beta.skills.create(
    name="summarizer",
    description="Summarizes long documents concisely.",
    betas=["skills-2025-01-01"],
)

# Access response fields
print(f"Skill ID: {response.id}")
print(f"Source: {response.source}")
print(f"Created at: {response.created_at}")
print(f"Type: {response.type}")

if response.display_title:
    print(f"Display title: {response.display_title}")

if response.latest_version:
    print(f"Latest version: {response.latest_version}")

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment