Skip to content

Commit 30c140f

Browse files
committed
[Docs][fix examples and docs] [GraphWorkflow][add_nodes]
1 parent c8f1d82 commit 30c140f

File tree

14 files changed

+288
-1057
lines changed

14 files changed

+288
-1057
lines changed

docs/examples/marketplace_publishing_quickstart.md

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,6 @@ my_agent = Agent(
7474
}
7575
],
7676

77-
# Required: Tags and capabilities
78-
tags=["finance", "crypto", "stocks", "analysis"],
79-
capabilities=["market-analysis", "risk-assessment", "portfolio-optimization"]
8077
)
8178
```
8279

@@ -170,8 +167,6 @@ print(result)
170167
|-------|------|-------------|
171168
| `publish_to_marketplace` | `bool` | Set to `True` to enable publishing |
172169
| `use_cases` | `List[Dict]` | List of use case dictionaries with `title` and `description` |
173-
| `tags` | `List[str]` | Keywords for discovery |
174-
| `capabilities` | `List[str]` | Agent capabilities for matching |
175170

176171
### Use Case Format
177172

@@ -243,31 +238,15 @@ print(response)
243238

244239
---
245240

246-
## Monetization
247-
248-
To create a paid agent:
249-
250-
```python
251-
from swarms.utils.swarms_marketplace_utils import add_prompt_to_marketplace
252-
253-
response = add_prompt_to_marketplace(
254-
name="Premium Analysis Agent",
255-
prompt="Your premium agent prompt...",
256-
description="Advanced analysis capabilities",
257-
use_cases=[...],
258-
tags="premium, advanced",
259-
category="finance",
260-
is_free=False, # Paid agent
261-
price_usd=9.99 # Price per use
262-
)
263-
```
264241

265242
---
266243

267244
## Next Steps
268245

269-
- Visit [Swarms Marketplace](https://swarms.world) to browse published agents
270-
- Learn about [Marketplace Documentation](../swarms_platform/share_and_discover.md)
271-
- Explore [Monetization Options](../swarms_platform/monetize.md)
272-
- See [API Key Management](../swarms_platform/apikeys.md)
246+
| Next Step | Description |
247+
|-----------|-------------|
248+
| [Swarms Marketplace](https://swarms.world) | Browse published agents |
249+
| [Marketplace Documentation](../swarms_platform/share_and_discover.md) | Learn how to publish and discover agents |
250+
| [Monetization Options](../swarms_platform/monetize.md) | Explore ways to monetize your agent |
251+
| [API Key Management](../swarms_platform/apikeys.md) | Manage your API keys for publishing and access |
273252

examples/multi_agent/graphworkflow_examples/graph_workflow_basic.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
1-
21
from swarms.structs.graph_workflow import GraphWorkflow
32
from swarms.structs.agent import Agent
43

54
agent_one = Agent(
6-
agent_name="research_agent",
7-
model_name="gpt-4o-mini",
5+
agent_name="research_agent",
6+
model_name="gpt-4o-mini",
87
name="Research Agent",
9-
agent_description="Agent responsible for gathering and summarizing research information."
8+
agent_description="Agent responsible for gathering and summarizing research information.",
109
)
1110
agent_two = Agent(
12-
agent_name="research_agent_two",
11+
agent_name="research_agent_two",
1312
model_name="gpt-4o-mini",
1413
name="Analysis Agent",
15-
agent_description="Agent that analyzes the research data provided and processes insights."
14+
agent_description="Agent that analyzes the research data provided and processes insights.",
1615
)
1716
agent_three = Agent(
18-
agent_name="research_agent_three",
17+
agent_name="research_agent_three",
1918
model_name="gpt-4o-mini",
20-
agent_description="Agent tasked with structuring analysis into a final report or output."
19+
agent_description="Agent tasked with structuring analysis into a final report or output.",
2120
)
2221

2322
# Create workflow with backend selection
@@ -41,4 +40,4 @@
4140
task = "Complete a simple task"
4241
results = workflow.run(task)
4342

44-
print(results)
43+
print(results)

examples/single_agent/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ This directory contains examples demonstrating single agent patterns, configurat
77
- [persistent_legal_agent.py](demos/persistent_legal_agent.py) - Legal document processing agent
88

99
## External Agents
10-
- [custom_agent_example.py](external_agents/custom_agent_example.py) - Custom agent implementation
1110
- [openai_assistant_wrapper.py](external_agents/openai_assistant_wrapper.py) - OpenAI Assistant integration
1211

1312
## LLM Integrations

examples/single_agent/external_agents/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ This directory contains examples demonstrating integration with external agent s
44

55
## Examples
66

7-
- [custom_agent_example.py](custom_agent_example.py) - Custom agent implementation
87
- [openai_assistant_wrapper.py](openai_assistant_wrapper.py) - OpenAI Assistant integration wrapper
98

109
## Overview

examples/single_agent/external_agents/custom_agent_example.py

Lines changed: 0 additions & 40 deletions
This file was deleted.

examples/single_agent/utils/medical_agent_add_to_marketplace.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import json
22
from swarms import Agent
33

4-
blood_analysis_system_prompt = """You are a clinical laboratory data analyst assistant focused on hematology and basic metabolic panels.
4+
blood_analysis_system_prompt = """
5+
You are a clinical laboratory data analyst assistant focused on hematology and basic metabolic panels.
6+
57
Your goals:
68
1) Interpret common blood test panels (CBC, CMP/BMP, lipid panel, HbA1c, thyroid panels) based on provided values, reference ranges, flags, and units.
79
2) Provide structured findings: out-of-range markers, degree of deviation, likely clinical significance, and differential considerations.

graph_workflow_basic.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
1-
21
from swarms.structs.graph_workflow import GraphWorkflow
32
from swarms.structs.agent import Agent
43

54
agent_one = Agent(
6-
agent_name="research_agent",
7-
model_name="claude-haiku-4-5",
5+
agent_name="research_agent",
6+
model_name="claude-haiku-4-5",
87
top_p=None,
98
temperature=None,
10-
agent_description="Agent responsible for gathering and summarizing research information."
9+
agent_description="Agent responsible for gathering and summarizing research information.",
1110
)
1211
agent_two = Agent(
13-
agent_name="research_agent_two",
12+
agent_name="research_agent_two",
1413
model_name="claude-haiku-4-5",
1514
top_p=None,
1615
temperature=None,
17-
agent_description="Agent that analyzes the research data provided and processes insights."
16+
agent_description="Agent that analyzes the research data provided and processes insights.",
1817
)
1918
agent_three = Agent(
20-
agent_name="research_agent_three",
19+
agent_name="research_agent_three",
2120
model_name="claude-haiku-4-5",
2221
top_p=None,
2322
temperature=None,
24-
agent_description="Agent tasked with structuring analysis into a final report or output."
23+
agent_description="Agent tasked with structuring analysis into a final report or output.",
2524
)
2625

2726
# Create workflow with backend selection
@@ -45,4 +44,4 @@
4544
task = "Analyze the best mining companies in the US"
4645
results = workflow.run(task)
4746

48-
print(results)
47+
print(results)

0 commit comments

Comments
 (0)