| 150 | |
| 151 | |
| 152 | class AsyncFindResource(AsyncAPIResource): |
| 153 | @cached_property |
| 154 | def with_raw_response(self) -> AsyncFindResourceWithRawResponse: |
| 155 | """ |
| 156 | This property can be used as a prefix for any HTTP method call to return |
| 157 | the raw response object instead of the parsed content. |
| 158 | |
| 159 | For more information, see https://www.github.com/sst/opencode-sdk-python#accessing-raw-response-data-eg-headers |
| 160 | """ |
| 161 | return AsyncFindResourceWithRawResponse(self) |
| 162 | |
| 163 | @cached_property |
| 164 | def with_streaming_response(self) -> AsyncFindResourceWithStreamingResponse: |
| 165 | """ |
| 166 | An alternative to `.with_raw_response` that doesn't eagerly read the response body. |
| 167 | |
| 168 | For more information, see https://www.github.com/sst/opencode-sdk-python#with_streaming_response |
| 169 | """ |
| 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, |
| 209 | *, |
nothing calls this directly
no outgoing calls
no test coverage detected