Remove debug prints

This commit is contained in:
2025-12-08 14:51:48 -05:00
parent 9e92fafd36
commit 5cd08c5ab7
3 changed files with 7 additions and 126 deletions

View File

@@ -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`