functai for TypeScript - v0.1.0
    Preparing search index...

    Class TurnEndHook

    A conversation's turn ended, before its end is recorded (so the next turn, which waits for that end, sees what this hook keeps): state is done, failed or stopped. turns(): the done turns of its branch, this one last when it is done.

    Hierarchy

    • HookEvent
      • TurnEndHook
    Index
    • Parameters

      • turn: string
      • state: string
      • inputs: Rec
      • outputs: Rec
      • conversation: ConversationLike
      • parent: string | null

      Returns TurnEndHook

    conversation: ConversationLike
    inputs: Rec
    outputs: Rec
    parent: string | null
    state: string
    turn: string
    • This plugin's entries of a kind on the branch of the turn the call runs in ([] outside a conversation).

      Parameters

      • kind: string

      Returns Rec[]

    • Keep an entry of this plugin at the turn the call runs in (outside a conversation, a TypeError).

      Parameters

      • kind: string
      • data: unknown

      Returns Promise<void>