Skip to content

An open-source, faster Devin alternative

TypeScript

docs: tool events recorded before the current fields keep their shape

Igor Zalutski532efb3777be
diff --git a/docs/agents/events.mdx b/docs/agents/events.mdx
index 2a0313fe..003f8102 100644
--- a/docs/agents/events.mdx
+++ b/docs/agents/events.mdx
@@ -114,7 +114,10 @@ and key a tool call on `callId` when it is present. The memory tools
tool; the save itself is reported separately.
`input` and `output` are JSON values, never JSON text: an object comes as an
-object, and a consumer reads it without parsing.
+object, and a consumer reads it without parsing. Tool events recorded before
+these fields were introduced keep the shape they were recorded with, so the
+React hook's [`turns`](/agents/react#activity) shows those calls unnamed and
+without output; `messages` is unaffected.
A successful call of the agent's [result tool](/agents/tools#the-session-result)
is recorded with `result: true`; its `output` is the validated value, the
diff --git a/docs/agents/react.mdx b/docs/agents/react.mdx
index 80ebafc4..0ba5e698 100644
--- a/docs/agents/react.mdx
+++ b/docs/agents/react.mdx
@@ -227,7 +227,10 @@ with `settledBy` naming the turn's end ([Session events](/agents/events#tools)).
Should a log carry no such record, the hook settles every call still
`running` when the turn ends: `completed` when the turn completed, `failed`
when it failed, `cancelled` when it was interrupted. A settled turn therefore
-never shows a running call. An activity timeline renders `turns` directly:
+never shows a running call. Tool events recorded before the current fields
+were introduced keep the shape they were recorded with, so `turns` shows
+those calls unnamed and without output; `messages` is unaffected. An
+activity timeline renders `turns` directly:
```tsx
{turns.map((turn) => (