Skip to content

Commit 101f116

Browse files
Expand the agent provider structure and add some configs for the claude provider
I've separated the structure of the claude agent implementation into three main pieces: 1. the `agent` cog -- generic for all agent providers 2. the `claude` provider -- implements a generic interface; can be instantiated and invoked by the agent 3. `ClaudeInvocation` -- an internal implementation detail of the Claude provider that wraps a single run of the Claude Code CLI (it will be helpful to have a stateful container unique to a specific invocation for output formatting, session tracking, etc.)
1 parent 4b64201 commit 101f116

File tree

8 files changed

+510
-65
lines changed

8 files changed

+510
-65
lines changed

dsl/simple_agent.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@
66
config do
77
agent do
88
provider :claude
9+
model "haiku"
10+
initial_prompt "Always respond in haiku form"
11+
show_prompt!
912
end
1013
end
1114

1215
execute do
13-
agent(:foo) { "Say hi" }
16+
agent { "What is the world's largest lake?" }
1417
end

0 commit comments

Comments
 (0)