Skip to contents

Agent runtime

create_deep_agent()
Create a deep agent
context_budget()
Configure context budget behavior
as_chat_factory()
Convert a model input to a chat factory
deep_tool()
Define an agent tool
as_ellmer_tool()
Convert a deep tool to an ellmer tool
subagent()
Define a subagent

Backends and safety

memory_backend()
Create an in-memory virtual filesystem backend
filesystem_backend()
Create a local filesystem backend
composite_backend()
Create a composite virtual filesystem backend
rds_store_backend()
Create a durable RDS-backed virtual filesystem backend
rds_checkpointer()
Create an RDS checkpointer
fs_permission()
Create a filesystem permission rule
interrupt_config()
Configure a human-in-the-loop interrupt
decision_approve()
Human approval decision
decision_edit()
Human edit decision
decision_reject()
Human rejection decision
decision_respond()
Human response decision
local_dev_shell_tool()
Create an opt-in local development shell tool

Extensions

aisdk_tool()
Wrap an aisdk Agent as a deepagentsr tool
aisdk_subagent()
Wrap an aisdk Agent as a direct deepagentsr subagent
discover_skills()
Discover skills from directories
mcp_tools()
Return optional MCP-backed tools
rag_tool()
Create a retrieval tool from an R search function
rag_tools()
Return optional RAG tools
as_shinychat_stream()
Adapt an agent event stream for Shiny chat demos

Events

export_events_jsonl()
Export agent events as JSON Lines
read_events_jsonl()
Read a JSON Lines event trace
print(<deepagent_event_stream>)
Print an agent event stream

Testing helpers

fake_chat()
Create a deterministic fake chat model
assistant_message()
Create a scripted assistant message
assistant_tool_call()
Create a scripted assistant tool call