Remove debug prints
This commit is contained in:
21
README.md
21
README.md
@@ -163,8 +163,8 @@ print(result.report.severity) # Typed access!
|
||||
print(result.report.affected_files)
|
||||
```
|
||||
|
||||
**Note**: String signatures like `"message:str -> report:BugReport"` only work with built-in types unless you use `dspy.Signature()` with `custom_types`. For custom Pydantic models, either:
|
||||
- Use `dspy.Signature("...", custom_types={...})`
|
||||
**Note**: String signatures like `"message:str -> report:BugReport"` only work with built-in types unless you use `dspy.Signature()`. For custom Pydantic models, either:
|
||||
- Use `dspy.Signature("...")`
|
||||
- Use class-based signatures (recommended)
|
||||
|
||||
### Push to Modaic Hub
|
||||
@@ -172,21 +172,12 @@ print(result.report.affected_files)
|
||||
```python
|
||||
from claude_dspy import ClaudeCode, ClaudeCodeConfig
|
||||
|
||||
# Create your agent
|
||||
# create your agent
|
||||
config = ClaudeCodeConfig(model="claude-opus-4-5-20251101")
|
||||
|
||||
agent = ClaudeCode(
|
||||
config,
|
||||
signature="message:str -> answer:str",
|
||||
working_directory=".",
|
||||
permission_mode="acceptEdits",
|
||||
)
|
||||
agent = ClaudeCode(config)
|
||||
|
||||
# Test it locally
|
||||
result = agent(message="Test my agent")
|
||||
print(result.answer)
|
||||
|
||||
# Push to Modaic Hub
|
||||
# push to Modaic Hub
|
||||
agent.push_to_hub("{USERNAME}/your-agent-name")
|
||||
```
|
||||
|
||||
@@ -307,7 +298,7 @@ Push the agent to Modaic Hub.
|
||||
|
||||
**Example:**
|
||||
```python
|
||||
agent.push_to_hub("your-username/your-agent")
|
||||
agent.push_to_hub("{USERNAME}/your-agent")
|
||||
```
|
||||
|
||||
##### `aforward(**kwargs) -> Prediction`
|
||||
|
||||
Reference in New Issue
Block a user