smoltalk
    Preparing search index...

    Class ToolMessage

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    _content: string | TextPart[]
    _name: string
    _rawData?: any
    _role: "tool" = ...
    _tool_call_id: string

    Accessors

    • get content(): string

      Returns string

    • set content(value: string): void

      Parameters

      • value: string

      Returns void

    • get name(): string

      Returns string

    • get rawData(): any

      Returns any

    • get role(): "tool"

      Returns "tool"

    • get tool_call_id(): string

      Returns string

    Methods

    • Parameters

      • content: string | unknown[] | null | undefined

      Returns string

    • Returns {
          content: { content: string; tool_use_id: string; type: "tool_result" }[];
          role: "user";
      }

    • Returns {
          content: string | { text: string; type: "text" }[];
          name: string;
          rawData?: any;
          role: "tool";
          tool_call_id: string;
      }