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

Method init

src/opencode_ai/resources/app.py:70–87  ·  view source on GitHub ↗

Initialize the app

(
        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

68 )
69
70 def init(
71 self,
72 *,
73 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
74 # The extra values given here take precedence over values defined on the client or passed to this method.
75 extra_headers: Headers | None = None,
76 extra_query: Query | None = None,
77 extra_body: Body | None = None,
78 timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
79 ) -> AppInitResponse:
80 """Initialize the app"""
81 return self._post(
82 "/app/init",
83 options=make_request_options(
84 extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
85 ),
86 cast_to=AppInitResponse,
87 )
88
89 def log(
90 self,

Callers 14

test_method_initMethod · 0.45
test_method_initMethod · 0.45
test_method_initMethod · 0.45
test_path_params_initMethod · 0.45
test_method_initMethod · 0.45

Calls 1

make_request_optionsFunction · 0.85

Tested by 14

test_method_initMethod · 0.36
test_method_initMethod · 0.36
test_method_initMethod · 0.36
test_path_params_initMethod · 0.36
test_method_initMethod · 0.36