Skip to content

.NET: Allow specifying the lifetime of agents when registering via AddAIAgent in Hosting #4457

@westey-m

Description

@westey-m

It should be possible to choose the DI lifetime of agents when registering them via AddAIAgent in Hosting, since we cannot assume that all agent dependencies (e.g. function tools) will always be singletons.

Also see #3620, to make sure we have a consistent experience across both.

Metadata

Metadata

Assignees

Labels

.NETagent hostingIssues related to agent hostingagentsIssues related to single agents

Type

Projects

Status

In Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions