# Dynamiq

> Open-source Python framework for orchestrating LLM agents and RAG workflows

- Category: App Orchestration / App Frameworks
- Language: Python
- Licence: Apache-2.0
- Repository: https://github.com/dynamiq-ai/dynamiq
- Website: https://getdynamiq.ai
- Canonical page: https://ai-tldr.dev/tools/dynamiq/
- Updated: 2026-10-21

## In short

Dynamiq is an open-source orchestration framework for agentic AI and LLM applications, written in Python and released under the Apache 2.0 license. Its README calls it an all-in-one generative-AI framework that specialises in orchestrating retrieval-augmented generation (RAG) and LLM agents. It sits in the App Frameworks category of the App Orchestration tools and is open-source, written in Python and licensed Apache-2.0.

## Overview

Dynamiq is an open-source orchestration framework for agentic AI and LLM applications, written in Python and released under the Apache 2.0 license. Its README calls it an all-in-one generative-AI framework that specialises in orchestrating retrieval-augmented generation (RAG) and LLM agents.

Everything in Dynamiq is a node: an LLM call, an agent, a tool, a document converter, a splitter, an embedder, a vector-store writer or retriever. Nodes are added to a Workflow, which runs them as a graph. Independent nodes run in parallel, and nodes declared with dependencies run in order, with an input transformer that maps one node's output into the next node's input.

Agents are ReAct-style nodes with a role, an LLM, a list of tools and a loop limit. Because an agent can itself be passed as a tool, a manager agent can delegate work to research and writing sub-agents. The same Workflow model covers RAG: an indexing flow that turns PDFs into embeddings in a vector database, and a retrieval flow that embeds a question, fetches the top documents and answers from them. It sits alongside LangChain, LlamaIndex and Haystack, and requires Python 3.10 or later.

## What it does

- Workflow engine that runs nodes in parallel or in sequence, with explicit dependencies and input transformers between nodes
- ReAct agents with roles, tool use, loop limits and asynchronous execution; agents can be used as tools by a manager agent for multi-agent orchestration
- Code-execution tools backed by E2B, Daytona and AWS Bedrock AgentCore Code Interpreter sandboxes
- RAG building blocks: PDF converters, document splitters, embedders, and writers and retrievers for vector stores such as Pinecone
- Prompt templates with Jinja-style variables, plus chatbot memory and a graph orchestrator, each shown in the README examples
- Installable from PyPI as dynamiq, or from source with uv

## Getting started

Install the package, run a single LLM node, then chain two agents in a Workflow. The examples come from the project's README and use OpenAI, so they need an OpenAI API key.

1. Install Dynamiq

   Dynamiq needs Python 3.10 or later. Install it from PyPI, or clone the repository and sync it with uv to build from source.

```bash
pip install dynamiq

# or build from source
git clone https://github.com/dynamiq-ai/dynamiq.git
cd dynamiq
uv sync
```

2. Run a simple LLM flow

   An LLM node takes a connection, a model and a prompt. Calling run() fills the template variables from input_data.

```python
from dynamiq.nodes.llms.openai import OpenAI
from dynamiq.connections import OpenAI as OpenAIConnection
from dynamiq.prompts import Prompt, Message

prompt_template = """
Translate the following text into English: {{ text }}
"""

prompt = Prompt(messages=[Message(content=prompt_template, role="user")])

llm = OpenAI(
    id="openai",
    connection=OpenAIConnection(api_key="OPENAI_API_KEY"),
    model="gpt-4o",
    temperature=0.3,
    max_tokens=1000,
    prompt=prompt
)

result = llm.run(
    input_data={
        "text": "Hola Mundo!"
    }
)

print(result.output)
```

3. Chain two agents in a Workflow

   The second agent depends on the first, and an InputTransformer feeds the first agent's answer into it. The Workflow runs them in order, so you don't pass outputs between them by hand.

```python
from dynamiq import Workflow
from dynamiq.nodes.llms import OpenAI
from dynamiq.connections import OpenAI as OpenAIConnection
from dynamiq.nodes.agents import Agent
from dynamiq.nodes.node import InputTransformer, NodeDependency

llm = OpenAI(
    connection=OpenAIConnection(api_key="OPENAI_API_KEY"),
    model="gpt-4o",
    temperature=0.1,
)

first_agent = Agent(
    name="Expert Agent",
    llm=llm,
    role="Professional writer with the goal of producing well-written and informative responses.",
    id="agent_1",
    max_loops=5
)

second_agent = Agent(
    name="Poetic Rewriter Agent",
    llm=llm,
    role="Professional writer with the goal of rewriting user input as a poem without changing its meaning.",
    id="agent_2",
    depends=[NodeDependency(first_agent)],
    input_transformer=InputTransformer(
        selector={"input": f"${[first_agent.id]}.output.content"}
    ),
    max_loops=5
)

wf = Workflow()
wf.flow.add_nodes(first_agent)
wf.flow.add_nodes(second_agent)

result = wf.run(
    input_data={"input": "How are sin(x) and cos(x) connected in electrodynamics?"},
)

print(result.output[second_agent.id].get("output").get("content"))
```

4. Go further

   The README also has examples for multi-agent orchestration, RAG indexing and retrieval with Pinecone, a chatbot with memory and the graph orchestrator. The documentation at dynamiq-ai.github.io/dynamiq has Quickstart, Agents and RAG tutorials and the API reference.

## When to use it

- Build a RAG service that indexes PDFs into a vector database and answers questions from the retrieved passages
- Run a manager agent that delegates research and writing to specialised sub-agents and assembles the result
- Give an agent a sandboxed code interpreter (E2B, Daytona or Bedrock AgentCore) to solve data and coding tasks
- Chain several LLM and agent steps into one workflow, with parallel branches where steps are independent

## Version history

- 2026-10-21 v0.69.0: Adds Python 3.14 support, memory-store commands in the CLI and a Linkup search tool. Image generation and edit nodes now default to gpt-image-2, and the ImageVariation node is removed.
