Skip to content

ability to fetch current composer value programmatically #154

@ilovepb

Description

@ilovepb

hi team,

would love the ability to fetch the current composer value (since we now have setComposerValue!)

something like

getComposerValue(): Promise<{
    content: UserMessageContent[]
    attachments: Attachment[]
    reply: string | null
    selectedToolId: string | null
    selectedModelId: string | null
}>

would be super nice!

use cases for having this:

  • render something outside of the chat based on the composer value contents (current attachments, etc.)
  • appending/modifying instead of replacing the current composer value.

thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions