MCPcopy Index your code

hub / github.com/The-Swarm-Corporation/swarms-rs / functions

Functions756 in github.com/The-Swarm-Corporation/swarms-rs

↓ 203 callersMethodclone
(&self)
swarms-rs/src/structs/agent.rs:288
↓ 175 callersMethodbuild
(self)
swarms-rs/src/structs/agent.rs:129
↓ 88 callersMethodadd_agent
Add an agent to the rearrange configuration
swarms-rs/src/structs/rearrange.rs:93
↓ 80 callersMethodadd
(&self, task: impl Into<String>, metadata: MetadataSchema)
swarms-rs/src/structs/swarm.rs:29
↓ 72 callersMethodagent_name
(mut self, name: impl Into<String>)
swarms-rs/src/structs/agent.rs:45
↓ 63 callersMethoduser_name
(mut self, name: impl Into<String>)
swarms-rs/src/structs/agent.rs:54
↓ 56 callersMethodregister_agent
Register an agent with the orchestrator
swarms-rs/src/structs/graph_workflow.rs:68
↓ 52 callersMethodmax_loops
(mut self, max_loops: u32)
swarms-rs/src/structs/agent.rs:69
↓ 48 callersMethodconnect_agents
Add a flow connection between two agents
swarms-rs/src/structs/graph_workflow.rs:83
↓ 48 callersMethodsystem_prompt
Sets the system prompt that guides the agent's behavior. The system prompt is sent to the LLM before every interaction and defines the agent's role,
swarms-rs/src/agent/swarms_agent.rs:276
↓ 46 callersFunctioncreate_mock_agent
(id: &str, name: &str, desc: &str, response: &str)
swarms-rs/tests/test_utils.rs:49
↓ 45 callersMethodtemperature
(mut self, temperature: f64)
swarms-rs/src/structs/agent.rs:64
↓ 36 callersMethodagent_builder
(&self)
swarms-rs/src/llm/provider/openai.rs:88
↓ 30 callersMethodname
Set the name of the agent rearrange instance
swarms-rs/src/structs/rearrange.rs:81
↓ 26 callersMethodrun
Execute the agent rearrangement task This method processes a task through the configured flow of agents, supporting both sequential and parallel exec
swarms-rs/src/structs/rearrange.rs:438
↓ 24 callersMethodenable_autosave
(mut self)
swarms-rs/src/structs/agent.rs:86
↓ 23 callersMethodname
(&self)
swarms-rs/tests/test_sequential_workflow.rs:67
↓ 23 callersMethodrun
(&self, _task: String)
swarms-rs/tests/test_sequential_workflow.rs:32
↓ 22 callersMethodsave_state_dir
(mut self, dir: impl Into<String>)
swarms-rs/src/agent/swarms_agent.rs:580
↓ 21 callersMethodset_model
(mut self, model: S)
swarms-rs/src/llm/provider/openai.rs:79
↓ 18 callersMethodconfig
Sets a custom agent configuration. This replaces the default configuration with a custom one. Use this when you need fine-grained control over agent
swarms-rs/src/agent/swarms_agent.rs:247
↓ 17 callersMethoddescription
(mut self, description: impl Into<String>)
swarms-rs/src/structs/agent.rs:59
↓ 17 callersMethodflow
Set the flow pattern for task execution
swarms-rs/src/structs/rearrange.rs:106
↓ 15 callersMethodexecute_workflow
Execute the entire workflow starting from a specific agent
swarms-rs/src/structs/graph_workflow.rs:225
↓ 14 callersMethodexecute_batch
Executes a batch of tasks across all agents concurrently
swarms-rs/src/structs/execute_agent_batch.rs:115
↓ 14 callersMethodquery
Query a message in the conversation history.
swarms-rs/src/structs/conversation.rs:118
↓ 13 callersMethodmetadata_output_dir
Set the metadata output directory
swarms-rs/src/structs/rearrange.rs:142
↓ 13 callersMethodname
(&self)
swarms-rs/tests/test_concurrent_workflow.rs:38
↓ 13 callersMethodverbose
(mut self, verbose: bool)
swarms-rs/src/structs/agent.rs:119
↓ 12 callersMethodadd_stop_word
(mut self, stop_word: impl Into<String>)
swarms-rs/src/structs/agent.rs:106
↓ 11 callersMethodagents
Set all agents at once
swarms-rs/src/structs/rearrange.rs:99
↓ 10 callersMethoddisable_task_complete_tool
(mut self)
swarms-rs/src/agent/swarms_agent.rs:596
↓ 10 callersMethodretry_attempts
(mut self, retry_attempts: u32)
swarms-rs/src/structs/agent.rs:91
↓ 10 callersMethodrun
(&self, _task: String)
swarms-rs/tests/test_rearrange.rs:23
↓ 9 callersMethodadd_log
(&mut self, agent_name: String, task: String, response: String)
swarms-rs/src/structs/conversation.rs:251
↓ 9 callersMethodoutput_type
Set the output format type
swarms-rs/src/structs/rearrange.rs:124
↓ 8 callersMethodrun
(&self, _task: String)
swarms-rs/tests/test_concurrent_workflow.rs:50
↓ 7 callersMethodadd_tool
Adds a native Rust tool to the agent's toolkit. Tools extend the agent's capabilities by allowing it to perform specific actions or access external d
swarms-rs/src/agent/swarms_agent.rs:355
↓ 7 callersMethodcompletion
( &self, request: CompletionRequest, )
swarms-rs/src/llm/provider/openai.rs:96
↓ 7 callersFunctioncreate_mock_agent
(id: &str, name: &str, description: &str, response: &str)
swarms-rs/benches/concurrent_workflow_benchmarks.rs:15
↓ 7 callersFunctioncreate_mock_openai
Create a mock OpenAI provider for testing
swarms-rs/benches/agent_initialization_benchmarks.rs:31
↓ 7 callersMethodmax_concurrent_tasks
(mut self, max: usize)
swarms-rs/src/structs/execute_agent_batch.rs:54
↓ 7 callersFunctionsave_to_file
Save the data to a file, if the file exists, it will be overwritten
swarms-rs/src/structs/persistence.rs:18
↓ 7 callersMethodvalidate
Ensure that all preconditions are met.
swarms-rs/src/structs/swarms_router.rs:67
↓ 6 callersMethodenable_plan
(mut self, planning_prompt: impl Into<Option<String>>)
swarms-rs/src/structs/agent.rs:79
↓ 6 callersMethodsearch
Search for a message in the conversation history.
swarms-rs/src/structs/conversation.rs:123
↓ 5 callersMethodadd_stdio_mcp_server
Adds tools from an MCP server via stdio (standard input/output). This method launches an external process that implements the MCP protocol over stdio
swarms-rs/src/agent/swarms_agent.rs:466
↓ 5 callersFunctioncreate_simple_config
Create a simple agent configuration for benchmarking
swarms-rs/benches/agent_initialization_benchmarks.rs:15
↓ 5 callersMethodexecute_agent
Execute a specific agent
swarms-rs/src/structs/graph_workflow.rs:206
↓ 5 callersFunctionfind_rust_files
(dir: &Path)
swarms-rs/tests/test_coverage_analysis.rs:200
↓ 5 callersFunctioninit_logger
Initialize the logging system with environment variable support Reads SWARMS_LOG_LEVEL environment variable and sets up colorful logging
swarms-rs/src/logging.rs:8
↓ 5 callersMethodmax_tokens
(mut self, max_tokens: u64)
swarms-rs/src/structs/agent.rs:74
↓ 5 callersFunctionrun_async
(future: F)
swarms-rs/benches/graph_workflow_benchmarks.rs:11
↓ 5 callersMethodrun_internal
Internal execution method with full parameter support
swarms-rs/src/structs/rearrange.rs:443
↓ 5 callersMethodworker_threads
(mut self, threads: usize)
swarms-rs/src/structs/execute_agent_batch.rs:64
↓ 4 callersMethodauto_cpu_optimization
(mut self, enable: bool)
swarms-rs/src/structs/execute_agent_batch.rs:59
↓ 4 callersMethoddescription
(&self)
swarms-rs/benches/concurrent_workflow_benchmarks.rs:77
↓ 4 callersMethoddescription
(&self)
swarms-rs/tests/test_rearrange.rs:60
↓ 4 callersMethodexecute_node
( &self, node_idx: NodeIndex, input: String, results: Arc<DashMap<String, Resu
swarms-rs/src/structs/graph_workflow.rs:262
↓ 4 callersFunctionexecute_with_custom_async
Execute a list of callables using a custom async runtime
swarms-rs/examples/multiple_agent/test_concurrent.rs:165
↓ 4 callersFunctionexecute_with_direct_threads
Execute a list of callables in parallel using thread::spawn directly
swarms-rs/examples/multiple_agent/test_concurrent.rs:91
↓ 4 callersFunctionexecute_with_threads
Execute a list of callables in parallel using std::thread
swarms-rs/examples/multiple_agent/test_concurrent.rs:26
↓ 4 callersFunctionexecute_with_tokio
Execute a list of callables using Tokio
swarms-rs/examples/multiple_agent/test_concurrent.rs:180
↓ 4 callersFunctionexecute_with_tokio_channel
Execute a list of callables using Tokio with a channel
swarms-rs/examples/multiple_agent/test_concurrent.rs:201
↓ 4 callersFunctionhas_valid_api_key
Helper function to check if we have a valid API key for integration tests
swarms-rs/tests/anthropic_tests.rs:151
↓ 4 callersFunctionload_from_file
Load the data from a file
swarms-rs/src/structs/persistence.rs:54
↓ 4 callersMethodmake_request_with_retry
( &self, url: &str, max_retries: u32, )
swarms-rs/examples/multiple_agent/gold_etf_analysis.rs:30
↓ 4 callersMethodname
(&self)
swarms-rs/benches/concurrent_workflow_benchmarks.rs:73
↓ 4 callersMethodremove_agent
Remove an agent from the swarm # Arguments `agent_name` - The name of the agent to be removed # Returns The removed agent if it existed, None othe
swarms-rs/src/structs/rearrange.rs:355
↓ 4 callersMethodrun
Execute a task on the selected swarm type with specified compute resources. # Params - task: The task to be executed by the swarm. # Returns: - T
swarms-rs/src/structs/swarms_router.rs:182
↓ 4 callersFunctionrun_async
(future: F)
swarms-rs/benches/concurrent_workflow_benchmarks.rs:10
↓ 4 callersMethodrun_batch
Runs the workflow for a batch of tasks, executes agents concurrently for each task.
swarms-rs/src/structs/concurrent_workflow.rs:178
↓ 4 callersMethodsave
(&self)
swarms-rs/tests/autonomous_config.rs:93
↓ 4 callersMethodsave_task_state
(&self, task: String)
swarms-rs/src/agent/swarms_agent.rs:1556
↓ 3 callersFunctionappend_to_file
Append the data to a file, if the file doesn't exist, it will be created
swarms-rs/src/structs/persistence.rs:34
↓ 3 callersMethodbuild
(mut self)
swarms-rs/src/agent/swarms_agent.rs:487
↓ 3 callersMethodcall
(&self, args: Self::Args)
swarms-rs/tests/test_tool_simple.rs:71
↓ 3 callersMethodclear
Clear the conversation history.
swarms-rs/src/structs/conversation.rs:131
↓ 3 callersMethodclone_box
(&self)
swarms-rs/src/agent/swarms_agent.rs:1600
↓ 3 callersMethodclone_for_task
Create a lightweight clone for task execution
swarms-rs/src/structs/rearrange.rs:717
↓ 3 callersMethodcompute_hash
Add a method to compute a hash for caching
swarms-rs/src/structs/agent.rs:202
↓ 3 callersMethoddescription
(&self)
swarms-rs/tests/test_concurrent_workflow.rs:46
↓ 3 callersMethoddescription
(&self)
swarms-rs/tests/test_sequential_workflow.rs:71
↓ 3 callersMethoddisconnect_agents
Remove an agent connection
swarms-rs/src/structs/graph_workflow.rs:171
↓ 3 callersFunctionensure_logger_initialized
()
swarms-rs/tests/test_logger.rs:12
↓ 3 callersMethodfind_execution_paths
Helper method to find all possible execution paths
swarms-rs/src/structs/graph_workflow.rs:463
↓ 3 callersMethodget_workflow_structure
Get the current workflow as a visualization-friendly format
swarms-rs/src/structs/graph_workflow.rs:399
↓ 3 callersMethodname
(&self)
swarms-rs/src/agent/swarms_agent.rs:1592
↓ 3 callersMethodrules
Set rules to be injected into all agents
swarms-rs/src/structs/rearrange.rs:148
↓ 3 callersMethodrun
(&self, _task: String)
swarms-rs/benches/concurrent_workflow_benchmarks.rs:39
↓ 3 callersFunctionscan_for_malicious_patterns
(dir: &Path, report: &mut HashMap<String, Vec<String>>)
swarms-rs/tests/test_security_safety.rs:210
↓ 3 callersMethodupdate
Update a message in the conversation history.
swarms-rs/src/structs/conversation.rs:113
↓ 2 callersFunctionanalyze_workflow_patterns
(dir: &Path, patterns: &mut HashMap<String, usize>)
swarms-rs/tests/test_integration_scaffolding.rs:209
↓ 2 callersMethodcall
(&self, args: String)
swarms-rs/src/structs/tool.rs:60
↓ 2 callersMethodchat
Performs a single chat interaction with the agent. This method allows for direct conversation with the agent without the full autonomous task executi
swarms-rs/src/agent/swarms_agent.rs:944
↓ 2 callersMethodclone_box
(&self)
swarms-rs/tests/test_rearrange.rs:64
↓ 2 callersMethodcount_messages_by_role
Count the number of messages by role
swarms-rs/src/structs/conversation.rs:186
↓ 2 callersFunctioncreate_failing_agent
(id: &str, name: &str, error_msg: &str)
swarms-rs/tests/test_utils.rs:92
↓ 2 callersFunctioncreate_tokio_runtime
Create and configure a Tokio runtime
swarms-rs/examples/multiple_agent/test_concurrent.rs:338
↓ 2 callersMethoddefinition
(&self)
swarms-rs/src/structs/tool.rs:56
next →1–100 of 756, ranked by callers