Class OmitEmptyTodoListProvider
- Namespace
- Oscova.Agents.Providers
- Assembly
- Oscova.Agents.dll
Adds the todo tools and instructions every turn, but the todo list message only once a todo is saved.
public sealed class OmitEmptyTodoListProvider : AIContextProviderInheritance
-
AIContextProvider
Inherited Members
-
AIContextProvider.InvokingAsync(AIContextProvider.InvokingContext, CancellationToken)AIContextProvider.InvokedAsync(AIContextProvider.InvokedContext, CancellationToken)AIContextProvider.GetService(Type, object?)AIContextProvider.GetService<TService>(object?)AIContextProvider.StateKeys
Remarks
The framework provider always injects a list message, so an empty list would cost tokens and history on every turn.
Constructors
- OmitEmptyTodoListProvider(TodoProvider)
-
Adds the todo tools and instructions every turn, but the todo list message only once a todo is saved.
Properties
- StateKeys
-
Gets the set of keys used to store the provider state in the Microsoft.Agents.AI.AgentSession.StateBag.
Methods
- GetService(Type, object?)
-
Asks the Microsoft.Agents.AI.AIContextProvider for an object of the specified type
serviceType. - InvokingCoreAsync(InvokingContext, CancellationToken)
-
Called at the start of agent invocation to provide additional context.