Skip to content

Deep Agent quickstart

Run a workspace-owning agent through a durable model and tool loop.

Updated View as Markdown
var agent = DeepAgent.builder(model)
        .systemPrompt("You are a careful research assistant.")
        .workspace(new InMemoryWorkspace())
        .build();

DeepRun run = agent.invoke("research-42", "Collect findings in notes/findings.txt")
        .toCompletableFuture().join();

The default in-memory workspace accepts safe relative paths only. Without a configured workspace, each thread receives an isolated in-memory workspace.

For an executable example without credentials, run:

mvn -pl :cortavyn-example-deep -am package -Prun-example
Navigation

Type to search…

↑↓ navigate↵ selectEsc close