Table of Contents

Class ToolSearchProvider

Namespace
Oscova.Agents.Providers
Assembly
Oscova.Agents.dll

Exposes a single search_tools entry point instead of the agent's full tool set. Discovered tools are added to the live run; previously called tools return from the current session's history.

public sealed class ToolSearchProvider : AIContextProvider

Inheritance

AIContextProvider

Inherited Members

AIContextProvider.InvokingAsync(AIContextProvider.InvokingContext, CancellationToken)
AIContextProvider.InvokedAsync(AIContextProvider.InvokedContext, CancellationToken)
AIContextProvider.GetService(Type, object?)
AIContextProvider.GetService<TService>(object?)
AIContextProvider.StateKeys

Remarks

Search results list a tool name the provider rejects under its Oscova.Agents.Middleware.ProviderToolNameChatClient alias, so compose this provider with that client, as AgentOrchestrator does.

Constructors

ToolSearchProvider(IEnumerable<string>, IEnumerable<string>, AgentToolCollection, AgentToolResolver, IToolSearchStrategy, string?)

Initializes a provider that hides allowed tools behind lexical discovery.

Fields

DefaultInstructions

Default instruction used when the host has no custom tool-search prompt.

SearchToolName

The callable identity of the tool that searches and loads available tools.

Methods

GetSearchableTools()

Returns effective unpinned functions available through tool discovery.

ProvideAIContextAsync(InvokingContext, CancellationToken)

When overridden in a derived class, provides additional AI context to be merged with the input context for the current invocation.