-
Notifications
You must be signed in to change notification settings - Fork 3
Add agent_tool() examples for common use cases #15
Copy link
Copy link
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
What
Add more examples to examples/agent-as-tool/ demonstrating real-world use cases for the three invocation modes:
- Sync: Document classification, sentiment analysis, entity extraction
- Streaming: Long-form research with progress, data pipeline with partial results
- Conversational: Code review with iterative feedback, negotiation between agents
Why
The current example covers the mechanics but does not show domain-specific patterns. More examples help developers understand when to use each mode.
How
- Pick one use case from the list above
- Create a new Python file in
examples/agent-as-tool/(e.g.,sentiment_analysis.py) - Use the
agent_tool()wrapper andWorkflowGraph— seeexamples/agent-as-tool/main.pyfor patterns - Add a brief description to
examples/agent-as-tool/README.md
Getting Started
pip install jamjet
cd examples/agent-as-tool
python main.py # run existing example to understand the patternKey files to read:
sdk/python/jamjet/agent_tool.py— theagent_tool()functionexamples/agent-as-tool/main.py— existing example with all 3 modes
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed