pub struct DocApiPreset<'a, I: Invoker> { /* private fields */ }Implementations§
Source§impl<'a, I: Invoker> DocApiPreset<'a, I>
impl<'a, I: Invoker> DocApiPreset<'a, I>
pub fn new(invoker: &'a I) -> Self
Sourcepub fn dispatch<'call>(
&'call self,
params: &'call DocPresetDispatchBoundParams,
) -> impl Future<Output = Result<DocPresetDispatchResult>> + Send + 'call
pub fn dispatch<'call>( &'call self, params: &'call DocPresetDispatchBoundParams, ) -> impl Future<Output = Result<DocPresetDispatchResult>> + Send + 'call
Dispatch an LLM tool call through the named preset’s dispatcher against the active session’s live document. Used by cross-language SDKs (e.g. Python) to proxy preset behavior over the CLI.
Sourcepub async fn dispatch_with_options(
&self,
params: &DocPresetDispatchBoundParams,
options: InvokeOptions,
) -> Result<DocPresetDispatchResult>
pub async fn dispatch_with_options( &self, params: &DocPresetDispatchBoundParams, options: InvokeOptions, ) -> Result<DocPresetDispatchResult>
Dispatch an LLM tool call through the named preset’s dispatcher against the active session’s live document. Used by cross-language SDKs (e.g. Python) to proxy preset behavior over the CLI.
Sourcepub fn get_catalog<'call>(
&'call self,
params: &'call DocPresetGetCatalogBoundParams,
) -> impl Future<Output = Result<DocPresetGetCatalogResult>> + Send + 'call
pub fn get_catalog<'call>( &'call self, params: &'call DocPresetGetCatalogBoundParams, ) -> impl Future<Output = Result<DocPresetGetCatalogResult>> + Send + 'call
Return the full tool catalog for an LLM-tools preset (defaults to the registered default preset).
Sourcepub async fn get_catalog_with_options(
&self,
params: &DocPresetGetCatalogBoundParams,
options: InvokeOptions,
) -> Result<DocPresetGetCatalogResult>
pub async fn get_catalog_with_options( &self, params: &DocPresetGetCatalogBoundParams, options: InvokeOptions, ) -> Result<DocPresetGetCatalogResult>
Return the full tool catalog for an LLM-tools preset (defaults to the registered default preset).
Sourcepub fn get_mcp_prompt<'call>(
&'call self,
params: &'call DocPresetGetMcpPromptBoundParams,
) -> impl Future<Output = Result<DocPresetGetMcpPromptResult>> + Send + 'call
pub fn get_mcp_prompt<'call>( &'call self, params: &'call DocPresetGetMcpPromptBoundParams, ) -> impl Future<Output = Result<DocPresetGetMcpPromptResult>> + Send + 'call
Return the MCP-flavored system prompt for an LLM-tools preset.
Sourcepub async fn get_mcp_prompt_with_options(
&self,
params: &DocPresetGetMcpPromptBoundParams,
options: InvokeOptions,
) -> Result<DocPresetGetMcpPromptResult>
pub async fn get_mcp_prompt_with_options( &self, params: &DocPresetGetMcpPromptBoundParams, options: InvokeOptions, ) -> Result<DocPresetGetMcpPromptResult>
Return the MCP-flavored system prompt for an LLM-tools preset.
Sourcepub fn get_system_prompt<'call>(
&'call self,
params: &'call DocPresetGetSystemPromptBoundParams,
) -> impl Future<Output = Result<DocPresetGetSystemPromptResult>> + Send + 'call
pub fn get_system_prompt<'call>( &'call self, params: &'call DocPresetGetSystemPromptBoundParams, ) -> impl Future<Output = Result<DocPresetGetSystemPromptResult>> + Send + 'call
Return the SDK-style system prompt for an LLM-tools preset.
Sourcepub async fn get_system_prompt_with_options(
&self,
params: &DocPresetGetSystemPromptBoundParams,
options: InvokeOptions,
) -> Result<DocPresetGetSystemPromptResult>
pub async fn get_system_prompt_with_options( &self, params: &DocPresetGetSystemPromptBoundParams, options: InvokeOptions, ) -> Result<DocPresetGetSystemPromptResult>
Return the SDK-style system prompt for an LLM-tools preset.
Sourcepub fn get_tools<'call>(
&'call self,
params: &'call DocPresetGetToolsBoundParams,
) -> impl Future<Output = Result<DocPresetGetToolsResult>> + Send + 'call
pub fn get_tools<'call>( &'call self, params: &'call DocPresetGetToolsBoundParams, ) -> impl Future<Output = Result<DocPresetGetToolsResult>> + Send + 'call
Return the provider-shaped tool array (openai|anthropic|vercel|generic) for an LLM-tools preset, plus the active cache strategy.
Sourcepub async fn get_tools_with_options(
&self,
params: &DocPresetGetToolsBoundParams,
options: InvokeOptions,
) -> Result<DocPresetGetToolsResult>
pub async fn get_tools_with_options( &self, params: &DocPresetGetToolsBoundParams, options: InvokeOptions, ) -> Result<DocPresetGetToolsResult>
Return the provider-shaped tool array (openai|anthropic|vercel|generic) for an LLM-tools preset, plus the active cache strategy.
Sourcepub fn list<'call>(
&'call self,
params: &'call DocPresetListBoundParams,
) -> impl Future<Output = Result<DocPresetListResult>> + Send + 'call
pub fn list<'call>( &'call self, params: &'call DocPresetListBoundParams, ) -> impl Future<Output = Result<DocPresetListResult>> + Send + 'call
List the LLM-tools preset ids registered in the Node SDK preset registry, plus the default preset id.
Sourcepub async fn list_with_options(
&self,
params: &DocPresetListBoundParams,
options: InvokeOptions,
) -> Result<DocPresetListResult>
pub async fn list_with_options( &self, params: &DocPresetListBoundParams, options: InvokeOptions, ) -> Result<DocPresetListResult>
List the LLM-tools preset ids registered in the Node SDK preset registry, plus the default preset id.