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

Method files

src/opencode_ai/resources/find.py:172–205  ·  view source on GitHub ↗

Find files 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 this request, i

(
        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

170 return AsyncFindResourceWithStreamingResponse(self)
171
172 async def files(
173 self,
174 *,
175 query: str,
176 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
177 # The extra values given here take precedence over values defined on the client or passed to this method.
178 extra_headers: Headers | None = None,
179 extra_query: Query | None = None,
180 extra_body: Body | None = None,
181 timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
182 ) -> FindFilesResponse:
183 """
184 Find files
185
186 Args:
187 extra_headers: Send extra headers
188
189 extra_query: Add additional query parameters to the request
190
191 extra_body: Add additional JSON properties to the request
192
193 timeout: Override the client-level default timeout for this request, in seconds
194 """
195 return await self._get(
196 "/find/file",
197 options=make_request_options(
198 extra_headers=extra_headers,
199 extra_query=extra_query,
200 extra_body=extra_body,
201 timeout=timeout,
202 query=await async_maybe_transform({"query": query}, find_files_params.FindFilesParams),
203 ),
204 cast_to=FindFilesResponse,
205 )
206
207 async def symbols(
208 self,

Callers

nothing calls this directly

Calls 2

make_request_optionsFunction · 0.85
async_maybe_transformFunction · 0.85

Tested by

no test coverage detected