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
console.error(`The run failed:\n${output.message}`)
@@ -164,9 +175,13 @@ Runs a Codebuff agent with the specified options.
164
175
165
176
#### Returns
166
177
167
-
Returns a Promise that resolves to a `RunState` object which can be passed into subsequent runs via the `previousRun` parameter to resume the conversation.
178
+
Returns a Promise that resolves to either a "success" or a "failure" object.
179
+
180
+
- The "success" object contains a `RunState` object which can be passed into subsequent runs via the `previousRun` parameter to resume the conversation.
181
+
- The "failure" object contains an `Error` object with a `name`, `message`, and `stack` properties.
168
182
169
183
The `RunState` object contains:
184
+
170
185
-`sessionState`: Internal state to be passed to the next run
171
186
-`output`: The agent's output (text, error, or other types)
0 commit comments