Type alias HistoryElement

HistoryElement: {
    action: Action;
    diff: string;
    graph: GraphState;
    payload: any;
    promptTokens?: TokenInfo;
}

Represents an element in the history of the graph.

Type declaration

  • action: Action

    The action that was performed.

  • diff: string

    The diff generated by the LLM to update the graph.

  • graph: GraphState

    The graph state after the action was performed.

  • payload: any

    The payload that was used to perform the action.

  • Optional promptTokens?: TokenInfo

    Information about the tokens used in the prompt.

Generated using TypeDoc