You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The client **MAY** modify or ignore these fields (except for `maxTokens`) without
250
+
communicating this to the server. For example, a client could use a model that does not
251
+
support one or more of these parameters, and would therefore be unable to leverage them.
252
+
253
+
### Result Fields
254
+
255
+
Sampling results are [message](#messages) objects, and will contain the following fields:
256
+
257
+
-`role`: The message role; see [Messages](#messages).
258
+
-`content`: The message content; see [Messages](#messages).
259
+
-`model`: The name of the model that generated the message.
260
+
-`stopReason`: The reason why sampling stopped, if known. The specification defines the following (non-exhaustive) stop reasons, although implementations **MAY** provide their own arbitrary values:
261
+
-`"endTurn"`: The participant is yielding the conversation to the other party.
262
+
-`"stopSequence"`: Message generation encountered one of the requested `stopSequences`.
263
+
-`"maxTokens"`: The token limit was reached.
264
+
217
265
## Error Handling
218
266
219
267
Clients **SHOULD** return errors for common failure cases:
0 commit comments