Use Dex with Agent SDKs
View as MarkdownThe Dex adapter wraps the agent you built with your agent SDK in a durable Dex agent session. The session runs each turn as Steps: model calls run in a RunModel Step, and by default each tool call runs in its own Step. Use it when your agent already uses an agent SDK and must survive crashes, deploys, and approvals that wait for days. Your prompts, tools, and model stay the same.
This recording runs the example with the OpenAI Agents SDK, stops it while cancel_order waits for approval, and starts it again.
How it works
A session is one Flow run, and the session ID is the Flow ID. Dex saves each Step's result when the Step finishes. After a crash or a deploy, the session continues from the saved results, so a Step whose result Dex saved does not run again. A Step that was cut off before Dex saved its result can run again. A retried RunModel Step runs its model calls again, and also the tools that run inside it or at the model provider, such as the Claude Agent SDK's reads and CLI tools. A tool in its own Step retries if it is a read or an idempotent write; any other write gets one attempt. A wait for an approval or the next message holds no Worker and runs nothing again.
A session remembers one conversation: its messages, tool calls, and results. A new session starts empty, so keep long-term memory in a store you own and give the agent tools that read and write it.
Your agent SDK's terms in Dex maps threads, turns, and checkpointers to Dex, and Features by harness lists the tools each agent SDK runs inside RunModel. What runs again and Latency and cost give the details.
Install the adapter
Install your agent SDK's adapter. In Python and Go it brings in Dex Agents, the package that builds the session Flow. In TypeScript the core and the Dex SDK are peer packages, so the command lists them.
- Claude Agent SDK
- Eino
- Google ADK
- LangGraph
- Mastra
- OpenAI Agents SDK
- Pi
- Pydantic AI
- Vercel AI SDK
pip install dex-agents-claude-agent-sdk
Example: agents/python/claude-agent-sdk
npm i @superdurable/dex-agents-claude-agent-sdk @superdurable/dex-agents @superdurable/dex zod
Example: agents/typescript/claude-agent-sdk
go get github.com/superdurable/dex/agents/go/eino
go get github.com/cloudwego/eino-ext/components/model/openai
Example: agents/go/eino
pip install dex-agents-google-adk
Example: agents/python/google-adk
Covers an agent built with LangChain create_agent and a custom LangGraph graph.
pip install dex-agents-langgraph langchain-openai
Example: agents/python/langgraph
npm i @superdurable/dex-agents-mastra @superdurable/dex-agents @superdurable/dex @mastra/core zod
Example: agents/typescript/mastra
pip install dex-agents-openai-agents
Example: agents/python/openai-agents
npm i @superdurable/dex-agents-openai-agents @superdurable/dex-agents @superdurable/dex @openai/agents zod
Example: agents/typescript/openai-agents
npm i @superdurable/dex-agents-pi @superdurable/dex-agents @superdurable/dex @earendil-works/pi-ai
npm i @earendil-works/pi-agent-core @earendil-works/pi-schema
Example: agents/typescript/pi
pip install dex-agents-pydantic-ai "pydantic-ai-slim[openai]"
Example: agents/python/pydantic-ai
npm i @superdurable/dex-agents-vercel-ai @superdurable/dex-agents @superdurable/dex ai @ai-sdk/openai zod
Example: agents/typescript/vercel-ai
Set the model provider's key, such as ANTHROPIC_API_KEY for the Claude Agent SDK, in the Worker's environment, never in session input (Credentials). Install the packages lists the versions each adapter needs.
Wrap your agent
Build the agent as your agent SDK alone would, with the same model and prompt. Then pass it, with a policy for each tool, to the adapter's session Flow. Each tab shows the plain agent and the durable one; the Claude Agent SDK example also configures the CLI and its tool list.
- Claude Agent SDK
- Eino
- Google ADK
- LangGraph
- Mastra
- OpenAI Agents SDK
- Pi
- Pydantic AI
- Vercel AI SDK
def build_plain_agent(order_desk: OrderDesk, model: str) -> ClaudeAgentOptions:
"""Returns the agent's options as the Claude Agent SDK alone writes them."""
orders = create_sdk_mcp_server("orders", tools=build_order_tools(order_desk))
return ClaudeAgentOptions(
model=model,
system_prompt=ORDER_SUPPORT_INSTRUCTIONS,
mcp_servers={"orders": orders},
allowed_tools=["mcp__orders__look_up_order", "mcp__orders__cancel_order"],
)
def build_durable_agent(order_desk: OrderDesk, model: str) -> AgentSessionFlow:
"""Returns the same agent as a durable Dex agent session."""
# Dex passes the tools to the CLI itself and decides when each one runs.
def build_options(context: ClaudeAgentOptionsContext) -> ClaudeAgentOptions:
return ClaudeAgentOptions(
model=model,
env=build_claude_cli_environment(os.environ),
system_prompt=ORDER_SUPPORT_INSTRUCTIONS,
tools=[],
setting_sources=[],
)
return claude_agent_session_flow(
build_options,
build_order_tools(order_desk),
flow_type="ClaudeAgentSDKQuickStart",
tool_policies={
"look_up_order": ToolPolicy(ToolEffect.READ),
"cancel_order": ToolPolicy(ToolEffect.NON_IDEMPOTENT_WRITE),
},
)
Example: examples/python/agent-harnesses/agent_harness_examples/quick_start/claude_agent_sdk_quick_start.py
/** Returns the agent's options as the Claude Agent SDK alone writes them. */
export function buildPlainAgent(orderDesk: OrderDesk, model: string): Options {
const orders = createSdkMcpServer({ name: "orders", tools: buildOrderTools(orderDesk) });
return {
model,
systemPrompt: orderSupportInstructions,
mcpServers: { orders },
allowedTools: ["mcp__orders__look_up_order", "mcp__orders__cancel_order"],
};
}
/** Returns the same agent as a durable Dex agent session. Dex passes the tools to the CLI itself. */
export function buildDurableAgent(
orderDesk: OrderDesk,
model: string,
cliEnvironment: Readonly<Record<string, string>>,
) {
return createClaudeAgentSessionFlow(
{
options: { model, systemPrompt: orderSupportInstructions, tools: [], settingSources: [], env: { ...cliEnvironment } },
customTools: buildOrderTools(orderDesk),
toolPolicies: {
look_up_order: { effect: "read" },
cancel_order: { effect: "non_idempotent_write" },
},
},
"ClaudeAgentSdkQuickStart",
);
}
Example: examples/typescript/src/products/agent-harnesses/quick-start/claude-agent-sdk-quick-start.ts
// NewPlainEinoAgent returns the agent as Eino alone writes it. An adk.Runner runs it in this process.
func NewPlainEinoAgent(
ctx context.Context, orderDesk *orderdesk.OrderDesk, chatModel model.ToolCallingChatModel,
) (*adk.ChatModelAgent, error) {
config, err := newEinoAgentConfig(orderDesk, chatModel)
if err != nil {
return nil, err
}
return adk.NewChatModelAgent(ctx, config)
}
// NewDurableEinoAgent returns the same agent as a durable Dex agent session: the same config, plus tool effects.
func NewDurableEinoAgent(
orderDesk *orderdesk.OrderDesk, chatModel model.ToolCallingChatModel,
) (*dexagents.AgentSessionFlow, error) {
config, err := newEinoAgentConfig(orderDesk, chatModel)
if err != nil {
return nil, err
}
return dexeino.NewAgentSessionFlow(config, EinoQuickStartFlowType,
dexeino.WithToolEffects(map[string]dexagents.ToolEffect{
"look_up_order": dexagents.ToolEffectRead,
"cancel_order": dexagents.ToolEffectNonIdempotentWrite,
}))
}
func newEinoAgentConfig(
orderDesk *orderdesk.OrderDesk, chatModel model.ToolCallingChatModel,
) (*adk.ChatModelAgentConfig, error) {
lookUpOrder, err := utils.InferTool("look_up_order",
Example: examples/go/agent-harnesses/quickstart/eino_quick_start.go
def build_plain_agent(order_desk: OrderDesk, model: str | BaseLlm) -> LlmAgent:
"""Returns the agent as Google ADK alone writes it."""
def look_up_order(order_id: str) -> str:
"""Look up one order by its order ID and return its items and status."""
return order_desk.describe_order(order_id)
def cancel_order(order_id: str, reason: str) -> str:
"""Cancel one order that has not shipped yet."""
return order_desk.cancel_order(order_id, reason)
return LlmAgent(
name="order_support",
model=model,
instruction=ORDER_SUPPORT_INSTRUCTIONS,
tools=[look_up_order, cancel_order],
)
def build_durable_agent(order_desk: OrderDesk, model: str | BaseLlm) -> AgentSessionFlow:
"""Returns the same agent as a durable Dex agent session."""
return adk_agent_session_flow(
build_plain_agent(order_desk, model),
flow_type="GoogleADKQuickStart",
tool_policies={
"look_up_order": ToolPolicy(ToolEffect.READ),
"cancel_order": ToolPolicy(ToolEffect.NON_IDEMPOTENT_WRITE),
},
)
Example: examples/python/agent-harnesses/agent_harness_examples/quick_start/google_adk_quick_start.py
def build_plain_agent(
order_desk: OrderDesk,
model: str | BaseChatModel,
middleware: Sequence[AgentMiddleware[Any, Any]] = (),
) -> Pregel[Any, Any, Any, Any]:
"""Returns the agent as LangChain alone writes it."""
@tool
def look_up_order(order_id: str) -> str:
"""Look up one order by its order ID and return its items and status."""
return order_desk.describe_order(order_id)
@tool
def cancel_order(order_id: str, reason: str) -> str:
"""Cancel one order that has not shipped yet."""
return order_desk.cancel_order(order_id, reason)
return create_agent(
model,
tools=[look_up_order, cancel_order],
system_prompt=ORDER_SUPPORT_INSTRUCTIONS,
middleware=middleware,
)
def build_durable_agent(order_desk: OrderDesk, model: str | BaseChatModel) -> AgentSessionFlow:
"""Returns the same agent as a durable Dex agent session."""
return langchain_agent_session_flow(
# Dex builds the agent on the Worker, with middleware that runs each tool call as a Step.
lambda: build_plain_agent(order_desk, model, [DurableToolCallMiddleware()]),
flow_type="LangChainQuickStart",
tool_policies={
"look_up_order": ToolPolicy(ToolEffect.READ),
"cancel_order": ToolPolicy(ToolEffect.NON_IDEMPOTENT_WRITE),
},
)
Example: examples/python/agent-harnesses/agent_harness_examples/quick_start/langchain_quick_start.py
/** Returns the agent as Mastra alone writes it. */
export function buildPlainAgent(orderDesk: OrderDesk, model: MastraModelConfig): Agent {
const lookUpOrder = createTool({
id: "look_up_order",
description: "Look up one order by its order ID and return its items and status.",
inputSchema: z.object({ order_id: z.string() }),
execute: async ({ order_id }) => orderDesk.describeOrder(order_id),
});
const cancelOrder = createTool({
id: "cancel_order",
description: "Cancel one order that has not shipped yet.",
inputSchema: z.object({ order_id: z.string(), reason: z.string() }),
execute: async ({ order_id, reason }) => orderDesk.cancelOrder(order_id, reason),
});
return new Agent({
id: "order-support",
name: "OrderSupport",
instructions: orderSupportInstructions,
model,
tools: { look_up_order: lookUpOrder, cancel_order: cancelOrder },
});
}
/** Returns the same agent as a durable Dex agent session. */
export function buildDurableAgent(orderDesk: OrderDesk, model: MastraModelConfig): AgentSessionFlow {
return createMastraAgentSessionFlow(buildPlainAgent(orderDesk, model), "MastraQuickStart", {
toolPolicies: {
look_up_order: { effect: "read" },
cancel_order: { effect: "non_idempotent_write" },
},
});
}
Example: examples/typescript/src/products/agent-harnesses/quick-start/mastra-quick-start.ts
def build_plain_agent(order_desk: OrderDesk, model: str | Model) -> Agent:
"""Returns the agent as the OpenAI Agents SDK alone writes it."""
@function_tool
def look_up_order(order_id: str) -> str:
"""Look up one order by its order ID and return its items and status."""
return order_desk.describe_order(order_id)
@function_tool
def cancel_order(order_id: str, reason: str) -> str:
"""Cancel one order that has not shipped yet."""
return order_desk.cancel_order(order_id, reason)
return Agent(
name="OrderSupport",
instructions=ORDER_SUPPORT_INSTRUCTIONS,
model=model,
tools=[look_up_order, cancel_order],
)
def build_durable_agent(order_desk: OrderDesk, model: str | Model) -> AgentSessionFlow:
"""Returns the same agent as a durable Dex agent session."""
return openai_agents_session_flow(
build_plain_agent(order_desk, model),
flow_type="OpenAIAgentsQuickStart",
tool_policies={
"look_up_order": ToolPolicy(ToolEffect.READ),
"cancel_order": ToolPolicy(ToolEffect.NON_IDEMPOTENT_WRITE),
},
)
Example: examples/python/agent-harnesses/agent_harness_examples/quick_start/openai_agents_quick_start.py
/** Returns the agent as the OpenAI Agents SDK alone writes it. */
export function buildPlainAgent(orderDesk: OrderDesk, model: string | Model): Agent {
const lookUpOrder = tool({
name: "look_up_order",
description: "Look up one order by its order ID and return its items and status.",
parameters: z.object({ order_id: z.string() }),
errorFunction: null,
execute: ({ order_id }) => orderDesk.describeOrder(order_id),
});
const cancelOrder = tool({
name: "cancel_order",
description: "Cancel one order that has not shipped yet.",
parameters: z.object({ order_id: z.string(), reason: z.string() }),
errorFunction: null,
execute: ({ order_id, reason }) => orderDesk.cancelOrder(order_id, reason),
});
return new Agent({
name: "OrderSupport",
instructions: orderSupportInstructions,
model,
tools: [lookUpOrder, cancelOrder],
});
}
/** Returns the same agent as a durable Dex agent session. */
export function buildDurableAgent(orderDesk: OrderDesk, model: string | Model): AgentSessionFlow {
return createOpenAIAgentsSessionFlow(buildPlainAgent(orderDesk, model), "OpenAIAgentsQuickStart", {
toolPolicies: {
look_up_order: { effect: "read" },
cancel_order: { effect: "non_idempotent_write" },
},
});
}
Example: examples/typescript/src/products/agent-harnesses/quick-start/openai-agents-quick-start.ts
/** Returns the agent as Pi alone writes it. Pi's Agent runs the loop in this process. */
export function buildPlainAgent(orderDesk: OrderDesk, model: Model<Api>): Agent {
const { lookUpOrder, cancelOrder } = buildOrderTools(orderDesk);
return new Agent({
initialState: { systemPrompt: orderSupportInstructions, model, tools: [lookUpOrder, cancelOrder] },
streamFn: streamSimple,
});
}
/**
* Returns the same agent as a durable Dex agent session: the same model and tools, plus tool effects.
* Without apiKey, pi-ai reads the provider's key from the environment.
*/
export function buildDurableAgent(
orderDesk: OrderDesk,
model: Model<Api>,
apiKey?: string,
): AgentSessionFlow<BuiltinLoopAgentRunner> {
const { lookUpOrder, cancelOrder } = buildOrderTools(orderDesk);
return createBuiltinAgentSessionFlow(
{
name: "order-support",
instructions: orderSupportInstructions,
model: createPiAiModelClient(model, { apiKey }),
tools: [
piAgentFunctionTool(lookUpOrder, { effect: "read" }),
piAgentFunctionTool(cancelOrder, { effect: "non_idempotent_write" }),
],
},
"PiQuickStart",
);
}
Example: examples/typescript/src/products/agent-harnesses/quick-start/pi-quick-start.ts
def build_plain_agent(order_desk: OrderDesk, model: str | Model) -> Agent[None, str]:
"""Returns the agent as Pydantic AI alone writes it."""
# The model is resolved at the first run, so a Client process needs no provider key.
agent = Agent(model, instructions=ORDER_SUPPORT_INSTRUCTIONS, defer_model_check=True)
@agent.tool_plain
def look_up_order(order_id: str) -> str:
"""Look up one order by its order ID and return its items and status."""
return order_desk.describe_order(order_id)
@agent.tool_plain
def cancel_order(order_id: str, reason: str) -> str:
"""Cancel one order that has not shipped yet."""
return order_desk.cancel_order(order_id, reason)
return agent
def build_durable_agent(order_desk: OrderDesk, model: str | Model) -> AgentSessionFlow:
"""Returns the same agent as a durable Dex agent session."""
return pydantic_ai_session_flow(
build_plain_agent(order_desk, model),
flow_type="PydanticAIQuickStart",
tool_policies={
"look_up_order": ToolPolicy(ToolEffect.READ),
"cancel_order": ToolPolicy(ToolEffect.NON_IDEMPOTENT_WRITE),
},
)
Example: examples/python/agent-harnesses/agent_harness_examples/quick_start/pydantic_ai_quick_start.py
/** Returns the agent as the Vercel AI SDK alone writes it. */
export function buildPlainAgent(orderDesk: OrderDesk, model: LanguageModel) {
return new ToolLoopAgent({ model, instructions: orderSupportInstructions, tools: buildOrderTools(orderDesk) });
}
/** Returns the same agent as a durable Dex agent session: the same settings, plus tool policies. */
export function buildDurableAgent(orderDesk: OrderDesk, model: LanguageModel): AgentSessionFlow {
return createVercelAiAgentSessionFlow(
{
model,
instructions: orderSupportInstructions,
tools: buildOrderTools(orderDesk),
toolPolicies: {
look_up_order: { effect: "read" },
cancel_order: { effect: "non_idempotent_write" },
},
},
"VercelAiQuickStart",
);
}
Example: examples/typescript/src/products/agent-harnesses/quick-start/vercel-ai-quick-start.ts
The complete files lists each file with every import. Tools that your agent SDK runs itself, such as MCP servers and hosted tools, need the changes in its Limits tab.
Give each tool a policy
Classify each tool by what a repeat of its external effect would do. For an ordinary tool that Dex runs in its own Step, the policy decides whether Dex may run a call again after a failure, and whether the call waits for a person:
| Effect class | What the tool does | Attempts | Waits for approval by default |
|---|---|---|---|
| read | Only reads. | Can retry | No |
idempotent_write | Writes, and a repeat with the same idempotency key has no further effect. | Can retry | No |
non_idempotent_write | Writes, and a repeat can repeat the effect. | One attempt | Yes |
| unclassified | Nothing is known about it. Dex treats it as a non-idempotent write. | One attempt | Yes |
A Connector write with bounded resends can send again after an unknown outcome, within its send cap.
Every attempt of one call carries the same idempotency key. A new tool call from the model gets a new key, so it can repeat an external effect, for example after an unknown outcome. Have the service also drop a repeat by a business key, such as the order ID.
Require approval changes the approval default. Tool call outcomes lists how each call ends and how to reconcile one whose outcome is unknown.
Serve it from your app
Your request handler sends the user's message to the session and returns. The reply arrives on the session's event stream or in its snapshot. Your app also runs a Worker, which runs the session's Steps, and Dex Server, which stores them, in Dex Cloud or on your own infrastructure (Where to run Dex Server).
The smallest host registers the session Flow that your durable wrap returns, starts a Worker and a Client in one process, and waits until the Worker is registered. This excerpt of it then starts a session, sends one message, and reads the snapshot until the turn ends:
sessions = AgentSessionClient(client, session_flow)
await sessions.start_session(session_id)
await sessions.send_user_message(session_id, message)
while True:
snapshot = await sessions.get_agent_snapshot(session_id)
state = snapshot.state
if state and state.turn_count >= 1:
if state.status == AgentSessionStatus.WAITING_FOR_USER_MESSAGE:
return snapshot
if state and state.status == AgentSessionStatus.FAILED:
raise RuntimeError(f"the session failed: {state.last_turn_error}")
await asyncio.sleep(0.5)
Example: examples/python/agent-harnesses/agent_harness_examples/quick_start/embed.py
sessions := dexagents.NewAgentSessionClient(client, sessionFlow)
if _, err := sessions.StartSession(ctx, sessionID, &message, dex.StartFlowOptions{}); err != nil {
return dexagents.AgentSnapshot{}, err
}
for {
snapshot, err := sessions.GetAgentSnapshot(ctx, sessionID)
if err != nil {
return dexagents.AgentSnapshot{}, err
}
if state := snapshot.State; state != nil {
if state.Status == dexagents.AgentSessionStatusFailed && state.LastTurnError != nil {
return dexagents.AgentSnapshot{}, fmt.Errorf("the session failed: %s", *state.LastTurnError)
}
if state.Status == dexagents.AgentSessionStatusFailed {
return dexagents.AgentSnapshot{}, errors.New("the session failed")
}
if state.TurnCount >= 1 && state.Status == dexagents.AgentSessionStatusWaitingForUserMessage {
return snapshot, nil
}
}
select {
case <-ctx.Done():
return dexagents.AgentSnapshot{}, ctx.Err()
case <-time.After(500 * time.Millisecond):
}
}
await startAgentSession(client, flow, sessionId, {});
await sendAgentUserMessage(client, flow, sessionId, { text: message });
for (;;) {
const snapshot = await readAgentSnapshot(client, flow, sessionId);
const state = snapshot.state;
if (state?.status === "failed") {
throw new Error(`the session failed: ${state.lastTurnError ?? "unknown error"}`);
}
if (state !== null && state.turnCount >= 1 && state.status === "waiting_for_user_message") {
return snapshot;
}
await new Promise((resolve) => setTimeout(resolve, 500));
}
Example: examples/typescript/src/products/agent-harnesses/quick-start/quick-start-embed.ts
A turn that waits for an approval ends only after your app answers it with resolve_interrupt (Approve from your application). The full host files are under The complete files. Polling suits scripts and tests. A chat UI reads the AgentEvents Stream instead. Serve sessions from a web app has a complete web app with a route for each step, and the Order Support Agent example serves those routes for every agent SDK.
Run the example
In one terminal, run dexcli dev (Install). In a second terminal, download the example for your language and ask the agent about an order. Python needs 3.11 or later with uv, TypeScript needs Node.js 22 (22.19 or later) or 24, and Go needs 1.26 or later.
curl -sL https://codeload.github.com/superdurable/dex/tar.gz/main | tar -xz --strip-components=3 dex-main/examples/python/agent-harnesses
cd agent-harnesses
uv sync --locked
uv run --frozen python -m agent_harness_examples.quick_start openai-agents "Look up order 1001"
Example: examples/python/agent-harnesses/agent_harness_examples/quick_start/__main__.py
curl -sL https://codeload.github.com/superdurable/dex/tar.gz/main | tar -xz --strip-components=3 dex-main/examples/go/agent-harnesses
cd agent-harnesses
go run ./cmd/agent-quick-start eino "Look up order 1001"
Example: examples/go/agent-harnesses/cmd/agent-quick-start/main.go
curl -sL https://codeload.github.com/superdurable/dex/tar.gz/main | tar -xz --strip-components=2 dex-main/examples/typescript
cd typescript
npm install
npm run agent-quick-start -- openai-agents "Look up order 1001"
Example: examples/typescript/src/products/agent-harnesses/quick-start/quick-start-main.ts
The program prints the session ID and the agent's reply:
Session openai-agents-quick-start-3980a512
Agent: Local demo response: Order 1001: 2 notebooks, shipped.
Replace openai-agents with your agent SDK's run argument:
| Agent SDK | Language | Run argument | API key |
|---|---|---|---|
| Claude Agent SDK | Python, TypeScript | claude-agent-sdk | ANTHROPIC_API_KEY |
| Eino | Go | eino | None; a local demo model |
| Google ADK | Python | google-adk | None; a local demo model |
| LangGraph | Python | langchain | None; a local demo model |
| Mastra | TypeScript | mastra | OPENAI_API_KEY |
| OpenAI Agents SDK | Python | openai-agents | None; a local demo model |
| OpenAI Agents SDK | TypeScript | openai-agents | OPENAI_API_KEY |
| Pi | TypeScript | pi | OPENAI_API_KEY, or another provider's key with DEX_PI_MODEL |
| Pydantic AI | Python | pydantic-ai | None; a local demo model |
| Vercel AI SDK | TypeScript | vercel-ai | OPENAI_API_KEY |
Ask it to cancel order 1002, and it waits for your approval at the prompt. Stop the program while it waits, then run the same command with --session-id SESSION_ID in place of the message. The session carries on from where it stopped, and the model calls from before the restart stay done.
To kill the program while a tool runs and see the tool call retried in the session history, follow the steps for your language: Python, TypeScript, or Go.
To start in an empty folder with published packages only, use the Python one-file starter: the OpenAI Agents SDK agent with its Worker and Client. It calls a real model, so set OPENAI_API_KEY first:
mkdir order-agent && cd order-agent
python3 -m venv .venv && source .venv/bin/activate
pip install dex-agents-openai-agents==0.5.0 dex-python-sdk==1.45.0
curl -fsSLO https://raw.githubusercontent.com/superdurable/dex/main/examples/python/agent-starter/agent.py
python agent.py "Cancel order 1002, it was a mistake"
Next
- Dex Agents CLI: chat with a durable agent in your terminal, without writing code.
- Connectors as Tools: give your agent official Connector operations as tools.
- Agent SDK adapters: what your agent SDK supports, and its limits.
- Production checklist: what to set up before launch.