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

Method modes

src/opencode_ai/resources/app.py:140–157  ·  view source on GitHub ↗

List all modes

(
        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

138 )
139
140 def modes(
141 self,
142 *,
143 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
144 # The extra values given here take precedence over values defined on the client or passed to this method.
145 extra_headers: Headers | None = None,
146 extra_query: Query | None = None,
147 extra_body: Body | None = None,
148 timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
149 ) -> AppModesResponse:
150 """List all modes"""
151 return self._get(
152 "/mode",
153 options=make_request_options(
154 extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
155 ),
156 cast_to=AppModesResponse,
157 )
158
159 def providers(
160 self,

Callers 6

test_method_modesMethod · 0.45
test_method_modesMethod · 0.45

Calls 1

make_request_optionsFunction · 0.85

Tested by 6

test_method_modesMethod · 0.36
test_method_modesMethod · 0.36