jieyefriic/rp-engine

YAML-native agent workflow execution engine, written in Rust

解決する課題

エージェントワークフローを手書きのコードで記述するのは煩雑で、可視化も困難です。このエンジンを使用すると、ワークフロー全体(ノード、エッジ、プロンプト、データソース、ツール)を1つのYAMLファイルで記述し、自動実行できます。依存関係の解決、LLM呼び出し、スクリプト、データベースクエリ、MCPツール、反復処理、マルチエージェント調整を処理します。

仕組み

You define a graph in YAML: nodes with types like generate, transform, iterator, supervisor, subgraph, data_connector, skill_set, and MCP tools, plus edges that connect them. The engine parses the YAML, resolves dependencies, and executes the graph in order. Each generate node can call a configured LLM provider with a prompt template, variables from earlier nodes, streaming, tool calls, and structured output. Transform nodes run Rhai scripts; iterator loops over data; supervisor routes between sub-agents; data_connector talks to PostgreSQL, MySQL, MongoDB, Redis, Qdrant, S3, or REST APIs. A harness layer injects workflow-level instructions into every generate node and supports persistent memory. Results include the source YAML so downstream tools can render topology and per-node results, and long workflows support checkpoint/resume.

対象ユーザー

手書きのオーケストレーションコードではなく、宣言的でバージョン管理可能なワークフロー定義を求めるエージェントベースのアプリケーション開発者向けです。また、YAMLを書かずにグラフィカルにワークフローを設計できるビジュアルIDEであるRicePromptのエンジンとしても機能します。

ハイライト

  • YAMLネイティブ:ワークフロー全体を単一ファイルで管理
  • マルチプロバイダーLLMサポート:OpenAI, Anthropic, Gemini, DeepSeek, Qwen, Zhipu, Moonshot, MiniMax, xAI, Huoshan, およびOpenAI互換エンドポイント
  • 豊富なノードタイプ:generate, transform (Rhai), iterator, supervisor, subgraph, data_connector, skill_set, MCP
  • 一般的なデータベースおよびオブジェクトストレージ用の組み込みデータコネクタ
  • ワークフローレベルの指示と永続メモリを備えたHarness層
  • ソースYAMLを含む自己記述型の ExecutionResult
  • 長いワークフローのためのチェックポイント/レジューム機能

関連

  • プロジェクト
  • プロジェクト
  • プロジェクト
  • プロジェクト