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

Method symbols

src/opencode_ai/resources/find.py:81–114  ·  view source on GitHub ↗

Find workspace symbols Args: extra_headers: Send extra headers extra_query: Add additional query parameters to the request extra_body: Add additional JSON properties to the request timeout: Override the client-level default timeout for thi

(
        self,
        *,
        query: str,
        # 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

79 )
80
81 def symbols(
82 self,
83 *,
84 query: str,
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 ) -> FindSymbolsResponse:
92 """
93 Find workspace symbols
94
95 Args:
96 extra_headers: Send extra headers
97
98 extra_query: Add additional query parameters to the request
99
100 extra_body: Add additional JSON properties to the request
101
102 timeout: Override the client-level default timeout for this request, in seconds
103 """
104 return self._get(
105 "/find/symbol",
106 options=make_request_options(
107 extra_headers=extra_headers,
108 extra_query=extra_query,
109 extra_body=extra_body,
110 timeout=timeout,
111 query=maybe_transform({"query": query}, find_symbols_params.FindSymbolsParams),
112 ),
113 cast_to=FindSymbolsResponse,
114 )
115
116 def text(
117 self,

Calls 2

make_request_optionsFunction · 0.85
maybe_transformFunction · 0.85