Takaro - v0.6.0
    Preparing search index...

    Function instrumentStateGraphCompile

    • Instruments StateGraph's compile method to create spans for agent creation and invocation

      Wraps the compile() method to:

      • Create a gen_ai.create_agent span when compile() is called
      • Automatically wrap the invoke() method on the returned compiled graph with a gen_ai.invoke_agent span

      Parameters

      • originalCompile: (...args: unknown[]) => CompiledGraph
      • options: LangGraphOptions

      Returns (...args: unknown[]) => CompiledGraph