Update README.md

This commit is contained in:
2025-12-10 05:45:04 +00:00
parent 7bd320180c
commit 56ed5cb11c

View File

@@ -1,3 +1,7 @@
---
autonomy: autonomous
license: MIT
---
# ClaudeCode - DSPy Module for Claude Code SDK # ClaudeCode - DSPy Module for Claude Code SDK
A DSPy module that wraps the Claude Code Python SDK with a signature-driven interface. Each agent instance maintains a stateful conversation session, making it perfect for multi-turn agentic workflows. A DSPy module that wraps the Claude Code Python SDK with a signature-driven interface. Each agent instance maintains a stateful conversation session, making it perfect for multi-turn agentic workflows.
@@ -845,7 +849,7 @@ When accessing `result.trace`, you'll see various item types:
## How It Works ## How It Works
### Signature <EFBFBD> Claude Flow ### Signature � Claude Flow
``` ```
1. Define signature: 'message:str -> answer:str' 1. Define signature: 'message:str -> answer:str'
@@ -856,9 +860,9 @@ When accessing `result.trace`, you'll see various item types:
4. forward(message="...") extracts message 4. forward(message="...") extracts message
5. If output field has desc <EFBFBD> append to message 5. If output field has desc � append to message
6. If output type ` str <EFBFBD> generate JSON schema 6. If output type ` str � generate JSON schema
7. Call client.query(message) with optional output_format 7. Call client.query(message) with optional output_format
@@ -986,7 +990,7 @@ result = agent(message=message)
### Why stateful sessions? ### Why stateful sessions?
Agents often need multi-turn context (e.g., "fix the bug" <EFBFBD> "write tests for it"). Stateful sessions make this natural without manual history management. Agents often need multi-turn context (e.g., "fix the bug" � "write tests for it"). Stateful sessions make this natural without manual history management.
Want fresh context? Create a new agent instance. Want fresh context? Create a new agent instance.