Skip to content

Commit 3115740

Browse files
Merge pull request #12 from AtelierArith/fix/improve-readme-examples
Improve README examples with full code example and better output hand…
2 parents 7162b2b + 1b58194 commit 3115740

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ end
138138

139139
```julia
140140
# Complete options configuration
141+
using ClaudeCodeSDK
142+
141143
options = ClaudeCodeOptions(
142144
allowed_tools=["Read", "Write", "Bash"],
143145
max_thinking_tokens=8000,
@@ -152,10 +154,20 @@ options = ClaudeCodeOptions(
152154
disallowed_tools=String[],
153155
model="claude-3-5-sonnet-20241022",
154156
permission_prompt_tool_name=nothing,
155-
cwd="/path/to/project"
157+
cwd="."
156158
)
157159

158-
result = query(prompt="Help me with my project", options=options)
160+
result = query(prompt="Help me with my project", options=options);
161+
162+
for message in result
163+
if message isa AssistantMessage
164+
for block in message.content
165+
if block isa TextBlock
166+
println(block.text)
167+
end
168+
end
169+
end
170+
end
159171
```
160172

161173
### Features

0 commit comments

Comments
 (0)