Table of Contents

Method UseWorkspacePathValidation

Namespace
Oscova.Agents.Middleware
Assembly
Oscova.Agents.dll

UseWorkspacePathValidation(ChatClientBuilder, Func<IReadOnlyList<AllowedDirectory>>)

Adds per-invocation validation for tool parameters marked with Oscova.Agents.Toolsets.WorkspacePathAttribute.

public static ChatClientBuilder UseWorkspacePathValidation(this ChatClientBuilder builder, Func<IReadOnlyList<AllowedDirectory>> workspaceResolver)

Parameters

builder ChatClientBuilder
workspaceResolver Func<IReadOnlyList<AllowedDirectory>>

Returns

ChatClientBuilder