From 13a5c8eab885869329b956a98c2567d386f87e36 Mon Sep 17 00:00:00 2001 From: Kye Gomez Date: Tue, 1 Jul 2025 13:02:55 -0700 Subject: [PATCH] docs fix --- docs/mkdocs.yml | 20 +++++++++----------- stream_example.py | 2 +- swarms/utils/formatter.py | 4 +++- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml index 66c1e2a4..fb4df1a8 100644 --- a/docs/mkdocs.yml +++ b/docs/mkdocs.yml @@ -159,6 +159,7 @@ markdown_extensions: - pymdownx.tasklist: custom_checkbox: true - pymdownx.tilde + nav: - Home: - Overview: "index.md" @@ -172,7 +173,6 @@ nav: # - Swarm Ecosystem: "swarms/concept/swarm_ecosystem.md" # - Swarms Products: "swarms/products.md" # - Swarms Vision: "swarms/concept/vision.md" - - Agents: # - Overview: "swarms/structs/index.md" - Concepts: @@ -252,7 +252,7 @@ nav: - GraphWorkflow: "swarms/structs/graph_workflow.md" - Communication Structure: "swarms/structs/conversation.md" - - Swarms Tools: + - Tools: - Overview: "swarms_tools/overview.md" - BaseTool Reference: "swarms/tools/base_tool.md" - MCP Client Utils: "swarms/tools/mcp_client_call.md" @@ -263,7 +263,7 @@ nav: - Social Media: - Twitter: "swarms_tools/twitter.md" - - Swarms Memory: + - Memory: - Overview: "swarms_memory/index.md" - Memory Systems: - ChromaDB: "swarms_memory/chromadb.md" @@ -271,14 +271,9 @@ nav: - Faiss: "swarms_memory/faiss.md" - Deployment Solutions: - - Deploy your Swarms on Google Cloud Run: "swarms_cloud/cloud_run.md" - - Deploy your Swarms on Phala: "swarms_cloud/phala_deploy.md" - - - About Us: - - Swarms Vision: "swarms/concept/vision.md" - - Swarm Ecosystem: "swarms/concept/swarm_ecosystem.md" - - Swarms Products: "swarms/products.md" - + - Deploy your agents on Google Cloud Run: "swarms_cloud/cloud_run.md" + - Deploy your agents on Phala: "swarms_cloud/phala_deploy.md" + - Deploy your agents on FastAPI: - Examples: @@ -406,6 +401,9 @@ nav: - Overview: "contributors/main.md" - Bounty Program: "corporate/bounty_program.md" - Links & Resources: "governance/main.md" + - Swarms Vision: "swarms/concept/vision.md" + - Swarm Ecosystem: "swarms/concept/swarm_ecosystem.md" + - Swarms Products: "swarms/products.md" - Learn More: - Understanding Swarms Architecture: "swarms/concept/framework_architecture.md" - Code Style Guide & Best Practices: "swarms/framework/code_cleanliness.md" diff --git a/stream_example.py b/stream_example.py index 82ff97b6..3234fb60 100644 --- a/stream_example.py +++ b/stream_example.py @@ -14,4 +14,4 @@ agent = Agent( response = agent.run( "Tell me a detailed story about Humanity colonizing the stars" ) -print(response) \ No newline at end of file +print(response) diff --git a/swarms/utils/formatter.py b/swarms/utils/formatter.py index b8f9d963..ccf5eaca 100644 --- a/swarms/utils/formatter.py +++ b/swarms/utils/formatter.py @@ -176,7 +176,9 @@ class Formatter: """ # Get random color similar to non-streaming approach random_color = choose_random_color() - panel_style = f"bold {random_color}" if style is None else style + panel_style = ( + f"bold {random_color}" if style is None else style + ) text_style = random_color def create_streaming_panel(text_obj, is_complete=False):