Skip to content
This repository was archived by the owner on Aug 28, 2026. It is now read-only.
This repository was archived by the owner on Aug 28, 2026. It is now read-only.

Add .invoke() Method to Graph API (LangGraph-like Execution) #35

Description

@divinoborges

Summary

Currently, Graph only exposes a .launch() method, which is great for interactive and UI-based workflows (e.g. Gradio apps). However, this design limits the use of Graph in programmatic, server-side, and API-driven contexts.

This issue proposes introducing a .invoke() method, similar to how LangGraph works, enabling graphs to be executed as pure functions and easily exposed as APIs.


Motivation

Many real-world use cases require graphs to be:

  • Executed headlessly (without UI)
  • Integrated into REST / FastAPI / serverless APIs
  • Used in pipelines, backends, or microservices
  • Composable and callable like regular Python functions

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions