You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
WithAgents<TAgents>(ServiceLifetime) registers an agent source with an explicit lifetime. Pass ServiceLifetime.Scoped when your IAIAgents reads tenant-scoped data such as Chronicle read models, so each request resolves agents for its own tenant. WithAgents<TAgents>() keeps registering a singleton. (#902)
Changed
IAgentExecution is now registered as transient, so it uses the caller's scope. With a scoped agent source, services that depend on IAgentExecution, IAIChatClients or a managed language model must be scoped or transient themselves. (#902)