pub struct CatalogSearchOptions { /* private fields */ }Expand description
Extensible CatalogSearchRequest, including inputs added after it was published.
Required inputs are CatalogSearchOptions::new arguments; optional inputs have fluent setters.
Input-only: it serialises to the flat wire request and is not deserialisable.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Implementations§
Source§impl CatalogSearchOptions
impl CatalogSearchOptions
Sourcepub fn new(contract: CatalogClientContract, query: impl Into<String>) -> Self
pub fn new(contract: CatalogClientContract, query: impl Into<String>) -> Self
Creates options with the required inputs.
Sourcepub fn limit(self, value: i32) -> Self
pub fn limit(self, value: i32) -> Self
Maximum number of candidates to return. Defaults to 10 when omitted.
Sourcepub fn kinds(self, value: Vec<CatalogCandidateKind>) -> Self
pub fn kinds(self, value: Vec<CatalogCandidateKind>) -> Self
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.
Sourcepub fn page(self, value: CatalogSearchPage) -> Self
pub fn page(self, value: CatalogSearchPage) -> Self
Numbered navigation using metadata from an earlier response. Requires catalog-search-pagination and the same query, kinds and effective limit. Omit for a fresh first-page search.
Sourcepub fn policy_session_id(self, value: impl Into<String>) -> Self
pub fn policy_session_id(self, value: impl Into<String>) -> Self
Select an existing attached local session. Requires authenticated, session-bound search. The runtime never creates, resumes or reconfigures a session to honour this selector.