Agent-Graph Python SDK

repository·master·Indexed 42 days ago

https://github.com/keta1930/agent-graph

A Multi-Agent System framework focused on Context Engineering for building, testing, and deploying complex multi-agent applications. Version 3.0.0 features visual workflows, long-term memory (User and Agent Self-Memory), and MCP (Model Context Protocol) integration. It includes specialized toolsets such as Agent Creator, Graph Designer for workflow orchestration, MCP Builder for custom tool servers using FastMCP, and a Task Manager for scheduled one-time or periodic executions.

Tokens
93.2K
Snippets
98
Records
448
Agent score
52%

What's inside Agent-Graph

  1. Overview of the File Creator tool

    master

    The File Creator tool provides Agents with comprehensive document management capabilities. It allows an Agent to manage text files (such as configuration documents, code files, and data records) throughout a conversation.

    Key capabilities include:

    • Creation: Creating new files from scratch.
    • Reading: Batch reading file contents, summaries, and operation histories.
    • Modification: Performing precise local edits via string replacement or performing large-scale changes via complete rewrites.
    • Management: Deleting unnecessary files and listing files via directory or global scans.
    • Persistence & Traceability: Files are stored at the conversation level, and the tool automatically maintains version history and operation logs, allowing the Agent to trace the content and reasoning behind every modification.
  2. Overview of the External Agent API roadmap

    master

    The External Agent API is a planned feature designed to allow developers to expose their Agents and workflows as public APIs. This enables the creation of an Agent service market where developers can build an ecosystem of callable Agent capabilities.

    Currently, sharing is limited to:

    • Result Sharing: Sharing the output of a conversation (does not allow others to use the Agent).
    • Open Source Packaging: Exporting configuration files (requires manual import and configuration by others).

    The upcoming API will transition Agents from local tools to hosted services.

  3. Overview of the Task Manager tool

    master

    The Task Manager provides Agents with the ability to create and manage scheduled tasks, enabling automated execution of workflows. It allows an Agent to act like an operations engineer by setting up unattended execution for scenarios such as scheduled reports, periodic data analysis, or regular content generation.

    Key capabilities include:

    • Task Specification Retrieval: Accessing guidelines for task creation, including interactive flows, JSON configuration formats, Cron expression documentation, and common use-case examples.
    • Task Registration: Registering tasks from JSON documents into the scheduling system.
    • Validation: The registration process validates configuration integrity, checking time formats, Cron expressions, and workflow existence.

    Supported scheduling types:

    • One-time Tasks (单次任务): Executes once at a specified time.
    • Periodic Tasks (周期任务): Executes periodically based on a Cron expression.
    • Batch Execution: Supports executing multiple workflow instances concurrently upon each task trigger, which is useful for batch processing scenarios.
  4. Overview of System Operations tools

    master

    The System Operations toolset provides Agents with the ability to query system resources and configurations. This allows an Agent to act like a system administrator, discovering available assets to avoid duplication and make informed decisions when designing workflows or prompts.

    Key capabilities include:

    • Model Discovery: List all configured model names.
    • MCP Service Management: List all MCP servers, their connection status, and a summary of their tools (showing the first 3 tools for connected servers). You can also retrieve detailed configurations and full tool lists for specific servers.
    • Workflow Management: List all available workflows and their descriptions, or retrieve the full configuration details (including all nodes and connection relationships) for a specific workflow.
    • Prompt Management: List all prompts and their categories, or retrieve the full content of a specific prompt.
    • System Tool Discovery: List the categories and functional descriptions of all available system tools.
  5. Overview of Agent-Graph Core Components

    master

    Agent-Graph is a multi-agent platform composed of several interconnected building blocks that enable autonomous task execution, orchestration, and collaboration. The core components include:

    • Agents: The autonomous execution units.
    • Graphs (Workflows): The orchestration layer used to coordinate multiple agents.
    • Models: The management system for LLM integrations.
    • Memory: Persistent storage systems for both agent and user data (short-term and long-term).
    • MCP: Integration with the Model Context Protocol to connect agents to external tools and data.
    • Built-in Tools: A set of native tools for file operations, agent creation, and graph design.
    • Prompt Center: A centralized repository for managing prompts used across agents and workflows.
    • Conversation Features: Tools for sharing and exporting conversation data.
    • Multi-User & Team: Features for team management, collaboration, and user invites.
  6. Use the Task Manager to automate workflows

    master

    The Task Manager allows Agents to act as assistants that help you create and manage scheduled tasks through interactive conversation. You can automate workflow execution by describing your needs to the Agent, which will then guide you through the configuration process.

    Core Capabilities

    • Interactive Creation: The Agent asks clarifying questions to understand your requirements.
    • Single Tasks: Execute a workflow once at a specific future time.
    • Recurring Tasks: Execute workflows repeatedly on a schedule (e.g., daily, weekly).
    • Batch Execution: Run multiple workflow instances concurrently from a single trigger.
    • Task Management: View, pause, resume, or delete tasks and their execution history.
  7. Use Graph Designer to design and manage multi-agent workflows

    master

    The Graph Designer toolset enables Agents to architect complex multi-agent collaboration systems. It provides capabilities for learning design specifications, exporting existing configurations, and registering new workflows.

    Key capabilities include:

    • Learning Design Specifications: Agents can retrieve specifications containing node configuration parameters, connection relationships, placeholder syntax, and design principles.
    • Workflow Export: Existing Graph configurations can be exported as JSON documents for inspection, modification, or optimization.
    • Workflow Registration: New Graphs can be registered into the system from JSON documents. The registration process validates configuration integrity, ensuring node connections are logical and references are valid.

    When designing workflows, Agents can:

    • Define node roles and prompts.
    • Configure models and MCP services.
    • Set input/output relationships.
    • Implement conditional branching using handoffs.
    • Use placeholders to reference node outputs and prompt templates.
  8. Explore Built-in Tool Categories

    master

    Built-in tools are categorized into three main functional groups:

    1. Resource Creation Tools

    Used to create and manage core platform resources.

    • Agent Creator: Create and configure new Agents.
    • Graph Designer: Design multi-agent workflows.
    • MCP Builder: Build MCP tool servers to extend external capabilities.
    • Prompt Generator: Create and manage reusable prompt templates.
    • Task Manager: Set up scheduled tasks for workflow automation.

    2. Collaboration Tools

    Used for multi-agent interaction and file management.

    • Sub-agent: Delegate tasks to specialized Agents for complex problem solving.
    • File Tool: Manage files within conversations to create structured documentation.

    3. Memory and Query Tools

    Used for persistence and system awareness.

    • Memory Tool: Store user preferences and Agent experiences to maintain continuity across conversations.
    • System Operations: Query system resources and configurations (e.g., available models and tools).
  9. Explore Agent-Graph documentation topics

    master

    The Agent-Graph documentation is organized into several key functional areas:

    • Quickstart Guide: Complete setup and your first project.
    • Agent System: How to create and configure individual agents.
    • Graph Workflows: Designing multi-agent workflows.
    • MCP Integration: Extending agent capabilities using Model Context Protocol (MCP) servers.
    • Memory System: Managing persistent memory for agents.
    • System Tools: Using built-in tools and utilities.
    • Team Collaboration: Managing workflows and agents within a team environment.
  10. Understand the Agent-Graph documentation structure

    master

    The documentation is organized into several functional areas to help you navigate the platform's capabilities:

    • first-steps/: Getting started guides.
    • core-components/: Detailed documentation for specific systems:
      • agent/: Agent system
      • graph/: Workflow graph
      • model/: Model management
      • memory/: Memory system
      • mcp/: MCP integration
      • tools/: Built-in tools
      • prompt/: Prompt center
      • conversation/: Conversation features
      • team/: Multi-user and team documentation
    • roadmap/: Future features and upcoming developments.
  11. Planned Agent Skills capabilities

    master

    The platform is exploring the integration of the Agent Skills mechanism with the following planned features:

    • Skills Library: Pre-set professional skill packs (e.g., Excel processing, data analysis, document generation).
    • Custom Skills: Ability for users to create and manage their own specialized skill packs.
    • Skills Sharing: Sharing and reusing Skills within a team.
    • Intelligent Loading: Automatically selecting and combining the most appropriate Skills based on the current task.
  12. Use Agent Creator to design and manage Agents

    master

    The Agent Creator toolset enables Agents to design, create, and manage other Agents within the system. It allows an Agent to act as an architect, designing specialized Agents for specific tasks or optimizing existing ones by referencing design principles and system configurations.

    Key capabilities include:

    • Acquire Agent Creation Specifications: Retrieve guidelines that include configuration parameter descriptions, design principles, and existing system categories.
    • Export Agent Configurations: Export the configuration of an existing Agent as a JSON document for inspection, analysis, or modification.
    • Register New Agents: Register a new Agent into the system or update an existing Agent's configuration using a JSON document.

    Through these tools, an Agent can learn to define clear capability descriptions, select appropriate models, configure MCP services and system tools, and set effective system prompts.