MCPcopy Create free account
hub / github.com/anomalyco/opencode-sdk-python / status

Method status

src/opencode_ai/resources/file.py:80–97  ·  view source on GitHub ↗

Get file status

(
        self,
        *,
        # 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,
    )

Source from the content-addressed store, hash-verified

78 )
79
80 def status(
81 self,
82 *,
83 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
84 # The extra values given here take precedence over values defined on the client or passed to this method.
85 extra_headers: Headers | None = None,
86 extra_query: Query | None = None,
87 extra_body: Body | None = None,
88 timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
89 ) -> FileStatusResponse:
90 """Get file status"""
91 return self._get(
92 "/file/status",
93 options=make_request_options(
94 extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
95 ),
96 cast_to=FileStatusResponse,
97 )
98
99
100class AsyncFileResource(AsyncAPIResource):

Calls 1

make_request_optionsFunction · 0.85