Commit db546c6
Fix Go doc example: type-assert SessionEventData to AssistantMessageData
The Go SDK uses per-event-type data structs, so response.Data is a
SessionEventData interface. Access Content by type-asserting to
*copilot.AssistantMessageData.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 04c2bd8 commit db546c6
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
| |||
115 | 117 | | |
116 | 118 | | |
117 | 119 | | |
118 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
119 | 123 | | |
120 | 124 | | |
121 | 125 | | |
| |||
0 commit comments