Cell API
    Preparing search index...

    Class AgentChatView

    The conversation of an AgentChat: user prompts, assistant answers as Markdown while they stream, tool calls and errors. Feed it agent events with AgentChatView.handle.

    Implements

    Index
    answer?: { markdown: Markdown; text: string }
    container: Container
    pi: __module
    • Applies one agent event. Returns whether the view changed.

      Parameters

      • event: { type: string; [key: string]: any }

      Returns boolean

    • Invalidate any cached rendering state. Called when theme changes or when component needs to re-render from scratch.

      Returns void

    • Render the component to lines for the given viewport width

      Parameters

      • width: number

        Current viewport width

      Returns string[]

      Array of strings, each representing a line