继承关系 (查看全部)

  • StateGraph<BaseMessage[], BaseMessage[], Messages>
    • 消息图

构造函数

属性

branches: Record<string, Record<string, Branch<BaseMessage[], "__start__">>>
channels: Record<string, BaseChannel<unknown, unknown, unknown>>
compiled: boolean
edges: Set<["__start__", "__end__" | "__start__"]>
entryPoint?: string
nodes: Record<"__start__", Runnable<BaseMessage[], Messages, RunnableConfig>>
supportMultipleEdges: boolean
waitingEdges: Set<["__start__"[], "__start__"]>

访问器

  • get allEdges(): Set<[string, string]>
  • 返回 Set<[string, string]>

方法

  • 参数

    • source: BranchOptions<BaseMessage[], "__start__">

    返回 this

  • 参数

    • source: "__start__"
    • path: ((input, config?) => string | string[] | Promise<string> | Promise<string[]>)
        • (input, config?): string | string[] | Promise<string> | Promise<string[]>
        • 参数

          • input: BaseMessage[]
          • 可选 config: RunnableConfig

          返回 string | string[] | Promise<string> | Promise<string[]>

    • 可选 pathMap: "__start__"[] | Record<string, "__end__" | "__start__">

    返回 this

  • 参数

    • startKey: "__start__" | "__start__"[]
    • endKey: "__end__" | "__start__"

    返回 this

  • 类型参数

    • K 扩展 string

    参数

    • key: K
    • action: RunnableLike<BaseMessage[], Messages>

    返回 StateGraph<BaseMessage[], BaseMessage[], Messages, "__start__" | K>

  • 参数

    • 可选 __namedParameters: {
          checkpointer?: BaseCheckpointSaver;
          interruptAfter?: "*" | "__start__"[];
          interruptBefore?: "*" | "__start__"[];
      }
      • 可选 checkpointer?: BaseCheckpointSaver
      • 可选 interruptAfter?: "*" | "__start__"[]
      • 可选 interruptBefore?: "*" | "__start__"[]

    返回 CompiledStateGraph<BaseMessage[], Messages, "__start__">

  • 参数

    • key: "__start__"

    返回 this

    已弃用

    使用 addEdge(START, key) 代替

  • 参数

    • key: "__start__"

    返回 this

    已弃用

    使用 addEdge(key, END) 代替

  • 参数

    • 可选 interrupt: string[]

    返回 void