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 and remembered for the cached agent instance.
public sealed class ToolSearchProvider : AIContextProviderInheritance
-
AIContextProvider
Inherited Members
-
AIContextProvider.InvokingAsync(AIContextProvider.InvokingContext, CancellationToken)AIContextProvider.InvokedAsync(AIContextProvider.InvokedContext, CancellationToken)AIContextProvider.GetService(Type, object?)AIContextProvider.GetService<TService>(object?)AIContextProvider.StateKeys
Constructors
- ToolSearchProvider(IEnumerable<string>, IEnumerable<string>, CrewToolCollection, 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.
Methods
- ProvideAIContextAsync(InvokingContext, CancellationToken)
-
When overridden in a derived class, provides additional AI context to be merged with the input context for the current invocation.