Skip to content

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

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

.NETUsage: [Issues, PRs], Target: .NetagentsUsage: [Issues, PRs], Target: Single agenthostingUsage: [Issues, PRs], Target: all hosting related solutions

Type

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions