Skip to main content

The AI Workflow Cross-Platform Engine

Project description

AutoAgents Graph Python SDK

The AI Workflow Cross-Platform Engine

English | 简体中文

PyPI version License MIT

Table of Contents

Why AutoAgents Graph?

AutoAgents Graph is a revolutionary AI workflow cross-platform engine that allows you to freely convert workflows between different AI platforms through a unified API. It enables seamless navigation through complex AI ecosystems with intelligent workflow orchestration.

  • Zero Learning Curve: Unified API design - learn once, use everywhere
  • Type Safety: Complete type validation based on Pydantic, ensuring secure workflow transmission
  • Platform Compatibility: Supports mainstream platforms like Dify, Agentify, with continuous expansion
  • Intelligent Conversion: Automatic node type recognition and conversion, with precise workflow translation

Quick Start

Prerequisites

  • Python 3.11+

Installation

pip install autoagents-graph

Examples

AutoAgents Graph provides three main usage patterns:

NL2Workflow - Cross-Platform Converter

from autoagents_graph import NL2Workflow
from autoagents_graph.engine.dify import DifyStartState, DifyLLMState, DifyEndState, START, END

# Create Dify platform workflow
workflow = NL2Workflow(
    platform="dify",
    app_name="Smart Assistant"
)

# Add nodes
workflow.add_node(id=START, state=DifyStartState(title="Start"))
workflow.add_node(id="ai", state=DifyLLMState(title="AI Response"))
workflow.add_node(id=END, state=DifyEndState(title="End"))

# Compile workflow
workflow.compile()

AgentifyGraph - Agentify Native Builder

from autoagents_graph.engine.agentify import AgentifyGraph, START
from autoagents_graph.engine.agentify.models import QuestionInputState, AiChatState

# Create Agentify workflow
graph = AgentifyGraph(
    personal_auth_key="your_key",
    personal_auth_secret="your_secret"
)

# Build intelligent conversation flow
graph.add_node(START, state=QuestionInputState(inputText=True))
graph.add_node("ai", state=AiChatState(model="doubao-deepseek-v3"))
graph.add_edge(START, "ai")

# Publish to platform
graph.compile(name="Smart Chat Assistant")

Supported Node Types

Agentify Platform Nodes

  • QuestionInputState - User input node
  • AiChatState - AI conversation node
  • ConfirmReplyState - Confirmation reply node
  • KnowledgeSearchState - Knowledge base search node
  • Pdf2MdState - Document parsing node
  • AddMemoryVariableState - Memory variable node
  • InfoClassState - Information classification node
  • CodeFragmentState - Code execution node
  • ForEachState - Loop iteration node
  • HttpInvokeState - HTTP request node
  • OfficeWordExportState - Word document export node
  • MarkdownToWordState - Markdown to Word conversion node
  • CodeExtractState - Code extractor node
  • DatabaseQueryState - Database query node

Dify Platform Nodes

  • DifyStartState - Start node
  • DifyLLMState - LLM node
  • DifyKnowledgeRetrievalState - Knowledge retrieval node
  • DifyEndState - End node

Contributing

We welcome community contributions! Please check the contribution guidelines for detailed processes.

Development Workflow

  1. Fork this project
  2. Create a feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Create a Pull Request

Contribution Types

  • Bug fixes
  • New feature development
  • Documentation improvements
  • Test cases
  • Platform adapters

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autoagents_graph-0.1.9.tar.gz (79.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autoagents_graph-0.1.9-py3-none-any.whl (69.0 kB view details)

Uploaded Python 3

File details

Details for the file autoagents_graph-0.1.9.tar.gz.

File metadata

  • Download URL: autoagents_graph-0.1.9.tar.gz
  • Upload date:
  • Size: 79.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.9

File hashes

Hashes for autoagents_graph-0.1.9.tar.gz
Algorithm Hash digest
SHA256 12b26ef3a5c54b363fb4807030f5eba98f59255f2de421340e444d9def1a48dd
MD5 a511b26ade4a1a4924a3dca354adcc8b
BLAKE2b-256 a5ceb9bd0b8df4687d91d5b03f8f46a0f1bab6da3201493ff58fe26548e7d401

See more details on using hashes here.

File details

Details for the file autoagents_graph-0.1.9-py3-none-any.whl.

File metadata

File hashes

Hashes for autoagents_graph-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 e508d4bb5fe1cdf7fcfe8035035545c0785918bb5cf892d9a768300f96610a74
MD5 4c14b8a966077bdc55a546d84669be7f
BLAKE2b-256 70ed58684effdba290ca32ca0cf526f8767cb43b28d5cf92cef0d13cc07f7327

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page