Home / Class/ AsyncSkills Class — anthropic-sdk-python Architecture

AsyncSkills Class — anthropic-sdk-python Architecture

Architecture documentation for the AsyncSkills class in skills.py from the anthropic-sdk-python codebase.

Entity Profile

Dependency Diagram

graph TD
  6312b1a6_c7ff_3133_309b_69fbf1824860["AsyncSkills"]
  f98629a5_73f4_23f2_1f7f_c8db837848d1["AsyncAPIResource"]
  6312b1a6_c7ff_3133_309b_69fbf1824860 -->|extends| f98629a5_73f4_23f2_1f7f_c8db837848d1
  838ab8e2_8763_65c1_65fc_cb3d8a4f7d3c["skills.py"]
  6312b1a6_c7ff_3133_309b_69fbf1824860 -->|defined in| 838ab8e2_8763_65c1_65fc_cb3d8a4f7d3c
  6d0b3ea1_091a_edc6_ecf7_d2749e98829a["versions()"]
  6312b1a6_c7ff_3133_309b_69fbf1824860 -->|method| 6d0b3ea1_091a_edc6_ecf7_d2749e98829a
  1410bd9e_bf1a_0e85_2a87_bd809cec84ef["with_raw_response()"]
  6312b1a6_c7ff_3133_309b_69fbf1824860 -->|method| 1410bd9e_bf1a_0e85_2a87_bd809cec84ef
  8d6de952_cca2_25f2_8ef5_349676a0b668["with_streaming_response()"]
  6312b1a6_c7ff_3133_309b_69fbf1824860 -->|method| 8d6de952_cca2_25f2_8ef5_349676a0b668
  2468db89_3562_5bee_593d_66452175e4b6["create()"]
  6312b1a6_c7ff_3133_309b_69fbf1824860 -->|method| 2468db89_3562_5bee_593d_66452175e4b6
  a60114e4_1117_cd05_d679_3a605444d3db["retrieve()"]
  6312b1a6_c7ff_3133_309b_69fbf1824860 -->|method| a60114e4_1117_cd05_d679_3a605444d3db
  c1b8f59e_73c8_127e_c8d3_d09a895ec302["list()"]
  6312b1a6_c7ff_3133_309b_69fbf1824860 -->|method| c1b8f59e_73c8_127e_c8d3_d09a895ec302
  dc03b13e_1b65_8d0e_4e88_95d30aa07816["delete()"]
  6312b1a6_c7ff_3133_309b_69fbf1824860 -->|method| dc03b13e_1b65_8d0e_4e88_95d30aa07816

Relationship Graph

Source Code

src/anthropic/resources/beta/skills/skills.py lines 324–592

class AsyncSkills(AsyncAPIResource):
    @cached_property
    def versions(self) -> AsyncVersions:
        return AsyncVersions(self._client)

    @cached_property
    def with_raw_response(self) -> AsyncSkillsWithRawResponse:
        """
        This property can be used as a prefix for any HTTP method call to return
        the raw response object instead of the parsed content.

        For more information, see https://www.github.com/anthropics/anthropic-sdk-python#accessing-raw-response-data-eg-headers
        """
        return AsyncSkillsWithRawResponse(self)

    @cached_property
    def with_streaming_response(self) -> AsyncSkillsWithStreamingResponse:
        """
        An alternative to `.with_raw_response` that doesn't eagerly read the response body.

        For more information, see https://www.github.com/anthropics/anthropic-sdk-python#with_streaming_response
        """
        return AsyncSkillsWithStreamingResponse(self)

    async def create(
        self,
        *,
        display_title: Optional[str] | Omit = omit,
        files: Optional[SequenceNotStr[FileTypes]] | Omit = omit,
        betas: List[AnthropicBetaParam] | Omit = omit,
        # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
        # The extra values given here take precedence over values defined on the client or passed to this method.
        extra_headers: Headers | None = None,
        extra_query: Query | None = None,
        extra_body: Body | None = None,
        timeout: float | httpx.Timeout | None | NotGiven = not_given,
    ) -> SkillCreateResponse:
        """
        Create Skill

        Args:
          display_title: Display title for the skill.

              This is a human-readable label that is not included in the prompt sent to the
              model.

          files: Files to upload for the skill.

              All files must be in the same top-level directory and must include a SKILL.md
              file at the root of that directory.

          betas: Optional header to specify the beta version(s) you want to use.

          extra_headers: Send extra headers

          extra_query: Add additional query parameters to the request

          extra_body: Add additional JSON properties to the request

          timeout: Override the client-level default timeout for this request, in seconds
        """
        extra_headers = {
            **strip_not_given(
                {
                    "anthropic-beta": ",".join(chain((str(e) for e in betas), ["skills-2025-10-02"]))
                    if is_given(betas)
                    else not_given
                }
            ),
            **(extra_headers or {}),
        }
        extra_headers = {"anthropic-beta": "skills-2025-10-02", **(extra_headers or {})}
        body = deepcopy_minimal(
            {
                "display_title": display_title,
                "files": files,
            }
        )
        extracted_files = extract_files(cast(Mapping[str, object], body), paths=[["files", "<array>"]])
        # It should be noted that the actual Content-Type header that will be
        # sent to the server will contain a `boundary` parameter, e.g.

Frequently Asked Questions

What is the AsyncSkills class?
AsyncSkills is a class in the anthropic-sdk-python codebase, defined in src/anthropic/resources/beta/skills/skills.py.
Where is AsyncSkills defined?
AsyncSkills is defined in src/anthropic/resources/beta/skills/skills.py at line 324.
What does AsyncSkills extend?
AsyncSkills extends AsyncAPIResource.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free