We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24709b6 commit a23c2a4Copy full SHA for a23c2a4
llm/claude_agent_sdk-demo.py
@@ -0,0 +1,12 @@
1
+import asyncio
2
+from claude_agent_sdk import query, ClaudeAgentOptions
3
+
4
+async def main():
5
+ async for message in query(
6
+ prompt="What files are in this directory?",
7
+ options=ClaudeAgentOptions(allowed_tools=["Bash", "Glob"])
8
+ ):
9
+ if hasattr(message, "result"):
10
+ print(message.result)
11
12
+asyncio.run(main())
0 commit comments