Skip to content

Conversation

@ethanpalm
Copy link
Collaborator

@ethanpalm ethanpalm commented Dec 18, 2025

Added documentation for the new optional context parameter in the assistant message API. This parameter allows passing code snippets or text selections to provide additional context to the assistant.

Files changed

  • api/assistant/create-assistant-message.mdx - Added example usage and documentation for the context parameter

Generated from feat: add context payloads to assistant messages @dks333


Note

Adds docs and example for an optional context payload (code/text selections) in the assistant message API useChat integration.

  • Docs (api/assistant/create-assistant-message.mdx):
    • Example update: Adds body.context to useChat configuration with a code snippet example (type, value, elementId).
    • New section – Optional configuration: Documents body.context structure and supported types (code, textSelection) and optional elementId.

Written by Cursor Bugbot for commit 070119f. This will update automatically on new commits. Configure here.

Co-Authored-By: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
@ethanpalm ethanpalm merged commit f9f6d1c into main Dec 18, 2025
6 checks passed
@ethanpalm ethanpalm deleted the mintlify/document-assistant-context-parameter-55450 branch December 18, 2025 01:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants