Commit 04c89b9
committed
docs(sdk): correct the createSession example to use chat.customAgent
The docstring showed a plain task(), but createSession resolves its
stop signal and message channels through the session handle that only
the chat.customAgent (or chat.agent) wrapper binds at run boot. A plain
task() would throw "session handle is not initialized" on the first
turn. Aligns the example with the reference project and the docs.1 parent 09f8e7a commit 04c89b9
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9003 | 9003 | | |
9004 | 9004 | | |
9005 | 9005 | | |
| 9006 | + | |
| 9007 | + | |
| 9008 | + | |
| 9009 | + | |
| 9010 | + | |
9006 | 9011 | | |
9007 | 9012 | | |
9008 | | - | |
9009 | 9013 | | |
9010 | 9014 | | |
9011 | 9015 | | |
9012 | 9016 | | |
9013 | | - | |
| 9017 | + | |
9014 | 9018 | | |
9015 | 9019 | | |
9016 | 9020 | | |
| |||
0 commit comments