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

Method get

src/opencode_ai/resources/config.py:42–59  ·  view source on GitHub ↗

Get config info

(
        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

40 return ConfigResourceWithStreamingResponse(self)
41
42 def get(
43 self,
44 *,
45 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
46 # The extra values given here take precedence over values defined on the client or passed to this method.
47 extra_headers: Headers | None = None,
48 extra_query: Query | None = None,
49 extra_body: Body | None = None,
50 timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
51 ) -> Config:
52 """Get config info"""
53 return self._get(
54 "/config",
55 options=make_request_options(
56 extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
57 ),
58 cast_to=Config,
59 )
60
61
62class AsyncConfigResource(AsyncAPIResource):

Callers

nothing calls this directly

Calls 1

make_request_optionsFunction · 0.85

Tested by

no test coverage detected