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

Method files

src/opencode_ai/resources/find.py:46–79  ·  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

44 return FindResourceWithStreamingResponse(self)
45
46 def files(
47 self,
48 *,
49 query: str,
50 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
51 # The extra values given here take precedence over values defined on the client or passed to this method.
52 extra_headers: Headers | None = None,
53 extra_query: Query | None = None,
54 extra_body: Body | None = None,
55 timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
56 ) -> FindFilesResponse:
57 """
58 Find files
59
60 Args:
61 extra_headers: Send extra headers
62
63 extra_query: Add additional query parameters to the request
64
65 extra_body: Add additional JSON properties to the request
66
67 timeout: Override the client-level default timeout for this request, in seconds
68 """
69 return self._get(
70 "/find/file",
71 options=make_request_options(
72 extra_headers=extra_headers,
73 extra_query=extra_query,
74 extra_body=extra_body,
75 timeout=timeout,
76 query=maybe_transform({"query": query}, find_files_params.FindFilesParams),
77 ),
78 cast_to=FindFilesResponse,
79 )
80
81 def symbols(
82 self,

Callers 6

test_method_filesMethod · 0.45
test_method_filesMethod · 0.45

Calls 2

make_request_optionsFunction · 0.85
maybe_transformFunction · 0.85

Tested by 6

test_method_filesMethod · 0.36
test_method_filesMethod · 0.36