Class CatalogSearchRequest
java.lang.Object
com.github.copilot.generated.rpc.CatalogSearchRequest
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public final class CatalogSearchRequest
extends Object
A bounded catalog search. Both the query length and the result count are capped by the schema so a caller cannot request an unbounded scan.
Required inputs are constructor arguments. Optional inputs have fluent setters.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionCatalogSearchRequest(CatalogClientContract contract, String query) Creates a request with its required inputs. -
Method Summary
Modifier and TypeMethodDescriptionReturns thecategoriesproperty.Returns thecontractproperty.getKinds()Returns thekindsproperty.getLimit()Returns thelimitproperty.getPage()Returns thepageproperty.Returns thepolicySessionIdproperty.getQuery()Returns thequeryproperty.setCategories(List<String> value) Sets thecategoriesproperty.setKinds(List<CatalogCandidateKind> value) Sets thekindsproperty.Sets thelimitproperty.setPage(CatalogSearchPage value) Sets thepageproperty.setPolicySessionId(String value) Sets thepolicySessionIdproperty.
-
Constructor Details
-
CatalogSearchRequest
Creates a request with its required inputs.- Parameters:
contract- Protocol version and capabilities the caller requires.query- Free-text search query. Persisted as tool input for session continuity, but omitted from telemetry.
-
-
Method Details
-
getContract
Returns thecontractproperty.- Returns:
- Protocol version and capabilities the caller requires.
-
getQuery
Returns thequeryproperty.- Returns:
- Free-text search query. Persisted as tool input for session continuity, but omitted from telemetry.
-
getLimit
Returns thelimitproperty.- Returns:
- Maximum number of candidates to return. Defaults to 10 when omitted.
-
getKinds
Returns thekindsproperty.- Returns:
- Restrict results to these candidate kinds. Agent Plugins are opt-in and require the `agent-plugin-discovery` capability so protocol-v3 clients generated before that variant cannot receive an unknown result; when omitted, the backwards-compatible MCP server and AI skill kinds are searched.
-
getPage
Returns thepageproperty.- Returns:
- Numbered navigation using metadata from an earlier response. Requires catalog-search-pagination and the same query, kinds, categories and effective limit. Omit for a fresh first-page search.
-
getPolicySessionId
Returns thepolicySessionIdproperty.- Returns:
- Select an existing attached local session. Requires authenticated, session-bound search. The runtime never creates, resumes or reconfigures a session to honour this selector.
-
getCategories
Returns thecategoriesproperty.- Returns:
- Restrict results to resources in at least one of these server-defined workflow categories, such as `design` or `test`. Requires the `catalog-search-categories` capability. Each value is a lowercase slug; the known set is not exhaustive, and a category the server does not recognise matches nothing. Omit to search every category.
-
setLimit
Sets thelimitproperty.- Parameters:
value- Maximum number of candidates to return. Defaults to 10 when omitted.- Returns:
- this request
-
setKinds
Sets thekindsproperty.- Parameters:
value- Restrict results to these candidate kinds. Agent Plugins are opt-in and require the `agent-plugin-discovery` capability so protocol-v3 clients generated before that variant cannot receive an unknown result; when omitted, the backwards-compatible MCP server and AI skill kinds are searched.- Returns:
- this request
-
setPage
Sets thepageproperty.- Parameters:
value- Numbered navigation using metadata from an earlier response. Requires catalog-search-pagination and the same query, kinds, categories and effective limit. Omit for a fresh first-page search.- Returns:
- this request
-
setPolicySessionId
Sets thepolicySessionIdproperty.- Parameters:
value- Select an existing attached local session. Requires authenticated, session-bound search. The runtime never creates, resumes or reconfigures a session to honour this selector.- Returns:
- this request
-
setCategories
Sets thecategoriesproperty.- Parameters:
value- Restrict results to resources in at least one of these server-defined workflow categories, such as `design` or `test`. Requires the `catalog-search-categories` capability. Each value is a lowercase slug; the known set is not exhaustive, and a category the server does not recognise matches nothing. Omit to search every category.- Returns:
- this request
-