AutoRetrieveCapability
Converts auto-retrieve from a pipeline stage to an on-demand
search_knowledge_base tool. The LLM decides when to call it;
the result flows back as a tool result for the LLM to use.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new AutoRetrieveCapability(config): AutoRetrieveCapability;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
Returns
Section titled “Returns”AutoRetrieveCapability
Methods
Section titled “Methods”getPromptSections()
Section titled “getPromptSections()”getPromptSections(): CapabilityPromptSection[];What does this capability contribute to the system prompt?
Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”getTools()
Section titled “getTools()”getTools(): ToolDeclaration<unknown, unknown>[];What tools does this capability expose for the current state?
Returns
Section titled “Returns”ToolDeclaration<unknown, unknown>[]
Implementation of
Section titled “Implementation of”processToolResult()
Section titled “processToolResult()”processToolResult( _toolName, _args, _result): CapabilityAction | null;A tool was called and executed. Does this capability handle the result?
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
|
|
|
|
|
Returns
Section titled “Returns”CapabilityAction | null
An action telling the host what to do, or null if this capability doesn’t handle this tool.