Commit dc95429
committed
docs: fix non-compiling attachment examples in the .NET README
The three attachment examples in dotnet/README.md referenced a type family
that no longer exists in the SDK: UserMessageDataAttachmentsItem,
UserMessageDataAttachmentsItemFile, UserMessageDataAttachmentsItemBlob and
the enum UserMessageDataAttachmentsItemType. Copying any of them produced
CS0246/CS0103, and because this README is packed as the package README it is
also what renders on the GitHub.Copilot.SDK NuGet page.
Update the examples to the shipped public API - List<Attachment> holding
AttachmentFile and AttachmentBlob - matching the C# blocks in
docs/features/image-input.md that documentation validation compiles. The
explicit discriminator assignment in the file attachment example is dropped
because the concrete subclass supplies it.1 parent b88e8c8 commit dc95429
1 file changed
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
| 299 | + | |
300 | 300 | | |
301 | | - | |
| 301 | + | |
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | | - | |
| 313 | + | |
314 | 314 | | |
315 | | - | |
| 315 | + | |
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
| |||
721 | 721 | | |
722 | 722 | | |
723 | 723 | | |
724 | | - | |
| 724 | + | |
725 | 725 | | |
726 | | - | |
| 726 | + | |
727 | 727 | | |
728 | | - | |
729 | 728 | | |
730 | 729 | | |
731 | 730 | | |
| |||
0 commit comments