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

Method get

src/opencode_ai/resources/config.py:82–99  ·  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

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

Callers

nothing calls this directly

Calls 1

make_request_optionsFunction · 0.85

Tested by

no test coverage detected