diff --git a/docs/index.md b/docs/index.md index fdc6dd4b..535d8fb2 100644 --- a/docs/index.md +++ b/docs/index.md @@ -27,9 +27,9 @@ Here you'll find references about the Swarms framework, marketplace, community, | Section | Links | |----------------------|--------------------------------------------------------------------------------------------| | Swarms Platform Github | [Swarms Platform GitHub](https://github.com/kyegomez/swarms-platform) | -| Swarms Python Framework Github | [Swarms Platform GitHub](https://github.com/kyegomez/swarms) | -| Swarms Memory Python Framework | [Swarms Platform GitHub](https://github.com/The-Swarm-Corporation/swarms-memory) | -| Swarms Corp Github Profile | [Swarms Platform GitHub](https://github.com/The-Swarm-Corporation) | +| Swarms Python Framework Github | [Swarms GitHub](https://github.com/kyegomez/swarms) | +| Swarms Memory Python Framework | [Swarms Memory GitHub](https://github.com/The-Swarm-Corporation/swarms-memory) | +| Swarms Corp Github Profile | [Swarms Corp GitHub](https://github.com/The-Swarm-Corporation) | ## Get Support diff --git a/docs/swarms/structs/agent.md b/docs/swarms/structs/agent.md index 39076a5e..9d546d49 100644 --- a/docs/swarms/structs/agent.md +++ b/docs/swarms/structs/agent.md @@ -269,3 +269,65 @@ tasks = [ responses = agent.bulk_run(tasks) print(responses) ``` + + +### Various other settings + +```python +# # Convert the agent object to a dictionary +print(agent.to_dict()) +print(agent.to_toml()) +print(agent.model_dump_json()) +print(agent.model_dump_yaml()) + +# Ingest documents into the agent's knowledge base +agent.ingest_docs("your_pdf_path.pdf") + +# Receive a message from a user and process it +agent.receive_message(name="agent_name", message="message") + +# Send a message from the agent to a user +agent.send_agent_message(agent_name="agent_name", message="message") + +# Ingest multiple documents into the agent's knowledge base +agent.ingest_docs("your_pdf_path.pdf", "your_csv_path.csv") + +# Run the agent with a filtered system prompt +agent.filtered_run( + "How can I establish a ROTH IRA to buy stocks and get a tax break? What are the criteria?" +) + +# Run the agent with multiple system prompts +agent.bulk_run( + [ + "How can I establish a ROTH IRA to buy stocks and get a tax break? What are the criteria?", + "Another system prompt", + ] +) + +# Add a memory to the agent +agent.add_memory("Add a memory to the agent") + +# Check the number of available tokens for the agent +agent.check_available_tokens() + +# Perform token checks for the agent +agent.tokens_checks() + +# Print the dashboard of the agent +agent.print_dashboard() + +# Print the history and memory of the agent +agent.print_history_and_memory() + +# Fetch all the documents from the doc folders +agent.get_docs_from_doc_folders() + +# Activate agent ops +agent.activate_agentops() +agent.check_end_session_agentops() + +# Dump the model to a JSON file +agent.model_dump_json() +print(agent.to_toml()) +``` \ No newline at end of file diff --git a/swarms/structs/agent.py b/swarms/structs/agent.py index 06a0e0df..8e662b59 100644 --- a/swarms/structs/agent.py +++ b/swarms/structs/agent.py @@ -2014,8 +2014,8 @@ class Agent: f"Model saved to {self.workspace_dir}/{self.agent_name}.yaml" ) - def publish_agent_to_marketplace(self): - import requests + # def publish_agent_to_marketplace(self): + # import requests - # Prepare the data + # # Prepare the data \ No newline at end of file