Class WorkspacePathValidationMiddleware
- Namespace
- Oscova.Agents.Middleware
- Assembly
- Oscova.Agents.dll
Validates workspace-scoped tool arguments at function invocation time using the public Microsoft.Extensions.AI.FunctionInvokingChatClient middleware hook.
public static class WorkspacePathValidationMiddlewareInheritance
Inherited Members
Methods
- GetPathArguments(string, IReadOnlyDictionary<string, object?>)
-
Reads the nonblank paths passed to a workspace path parameter, which may hold one path or an array of paths.
- UseWorkspacePathValidation(ChatClientBuilder, Func<IReadOnlyList<AllowedDirectory>>)
-
Adds per-invocation validation for tool parameters marked with Oscova.Agents.Toolsets.WorkspacePathAttribute.
- ValidateWorkspaceArguments(AIFunction, AIFunctionArguments, IReadOnlyList<AllowedDirectory>)
-
Validates a registered function's path arguments against the executing environment's grants.