Skip to content

Commit 319f01a

Browse files
bloveclaude
andcommitted
chore(docs): regenerate api-docs for asNode option
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 5ff461e commit 319f01a

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

apps/website/content/docs/agent/api/api-docs.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
},
174174
{
175175
"name": "updateState",
176-
"signature": "updateState(threadId: string, values: Record<string, unknown>, _signal: AbortSignal)",
176+
"signature": "updateState(threadId: string, values: Record<string, unknown>, _signal: AbortSignal, options: object)",
177177
"description": "Update server-side thread state, e.g. to remove messages for regenerate rollback.",
178178
"params": [
179179
{
@@ -193,6 +193,12 @@
193193
"type": "AbortSignal",
194194
"description": "",
195195
"optional": false
196+
},
197+
{
198+
"name": "options",
199+
"type": "object",
200+
"description": "",
201+
"optional": true
196202
}
197203
]
198204
}
@@ -937,7 +943,7 @@
937943
{
938944
"name": "regenerate",
939945
"type": "object",
940-
"description": "Discards the assistant message at the given index AND all messages after\nit, then re-runs the agent against the trimmed conversation tail. The\npreceding user message (at index - 1) is preserved and re-submitted as\nthe agent's input. No new user message is added to the history.\n\nThrows if the message at `index` is not 'assistant' role, or if the\nagent is currently loading another response.",
946+
"description": "Truncate the thread at the given assistant-message index and re-submit the\npreceding user message. Used by `<ngaf-chat>`'s regenerate action and any\ncustom UI that wants the same semantics. Rejects if the agent is currently\nloading, if the index does not point at an assistant message, or if no\npreceding user message exists.",
941947
"optional": false
942948
},
943949
{
@@ -1301,7 +1307,7 @@
13011307
{
13021308
"name": "regenerate",
13031309
"type": "object",
1304-
"description": "Discards the assistant message at the given index AND all messages after\nit, then re-runs the agent against the trimmed conversation tail. The\npreceding user message (at index - 1) is preserved and re-submitted as\nthe agent's input. No new user message is added to the history.\n\nThrows if the message at `index` is not 'assistant' role, or if the\nagent is currently loading another response.",
1310+
"description": "Truncate the thread at the given assistant-message index and re-submit the\npreceding user message. Used by `<ngaf-chat>`'s regenerate action and any\ncustom UI that wants the same semantics. Rejects if the agent is currently\nloading, if the index does not point at an assistant message, or if no\npreceding user message exists.",
13051311
"optional": false
13061312
},
13071313
{

0 commit comments

Comments
 (0)