Skip to content

Commit cbfcd9a

Browse files
stephentoubCopilot
andcommitted
Fix PermissionRequestResultKind type in custom-agents docs
Use PermissionRequestResultKind.Approved instead of string literal "approved" to match the strongly-typed struct in the .NET SDK. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 6bc16a2 commit cbfcd9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guides/custom-agents.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ await using var session = await client.CreateSessionAsync(new SessionConfig
158158
},
159159
},
160160
OnPermissionRequest = (req, inv) =>
161-
Task.FromResult(new PermissionRequestResult { Kind = "approved" }),
161+
Task.FromResult(new PermissionRequestResult { Kind = PermissionRequestResultKind.Approved }),
162162
});
163163
```
164164

0 commit comments

Comments
 (0)