Skip to content

.NET: [Feature]: Add parameters ILoggerFactory and IServiceProvider to the HarnessAgent constructor #6103

@helloxubo

Description

@helloxubo

Description

Add parameters ILoggerFactory and IServiceProvider to the HarnessAgent constructor,Also add the corresponding parameters to the AsHarnessAgent extension method。

Code Sample

c#
public HarnessAgent(IChatClient chatClient, int maxContextWindowTokens, int maxOutputTokens, HarnessAgentOptions? options = null,ILoggerFactory? loggerFactory = null,IServiceProvider? services = null)

    public static HarnessAgent AsHarnessAgent(
        this IChatClient chatClient,
        int maxContextWindowTokens,
        int maxOutputTokens,
        HarnessAgentOptions? options = null,
        ILoggerFactory? loggerFactory = null,
        IServiceProvider? services = null) =>
        new(chatClient, maxContextWindowTokens, maxOutputTokens, options);

Language/SDK

.NET

Metadata

Metadata

Assignees

Labels

No fields configured for Feature.

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions