Skip to content

Commit cc7dc8a

Browse files
jsonbaileyclaude
andcommitted
fix: Drop misleading "conversation history" example from server-ai README
`ManagedModel.get_config().messages` returns the configured/templated system messages from the AI Config, not the conversation history the model accumulated across run() calls. Drop the block rather than imply otherwise. Refs AIC-2383 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent d62ee1d commit cc7dc8a

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

packages/sdk/server-ai/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,6 @@ async def main():
129129

130130
response2 = await model.run("What's the status?")
131131
print(response2.content)
132-
133-
# Access conversation history
134-
messages = model.get_config().messages
135-
print(f'Conversation has {len(messages)} messages')
136132

137133
asyncio.run(main())
138134
```

0 commit comments

Comments
 (0)