Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/akshayballal95/smolagents-rs
/ functions
Functions
122 in github.com/akshayballal95/smolagents-rs
⨍
Functions
122
◇
Types & classes
57
↓ 23 callers
Function
evaluate_python_code
( code: &str, custom_tools: Vec<Box<dyn AnyTool>>, state: &mut HashMap<String, Box<dyn Any>>, )
src/local_python_interpreter.rs:994
↓ 11 callers
Method
str
(&self)
src/local_python_interpreter.rs:101
↓ 9 callers
Function
convert_bigint_to_i64
(i: &BigInt)
src/local_python_interpreter.rs:463
↓ 9 callers
Method
into_py
(self, py: Python<'_>)
src/local_python_interpreter.rs:196
↓ 8 callers
Method
get_logs_mut
(&mut self)
src/agents.rs:360
↓ 6 callers
Function
extract_constant_from_pyobject
( obj: &PyAny, py: Python<'_>, )
src/local_python_interpreter.rs:951
↓ 5 callers
Method
build
(self)
src/models/ollama.rs:87
↓ 5 callers
Method
get_response
(&self)
src/models/openai.rs:84
↓ 5 callers
Method
run
(&mut self, task: &str, stream: bool, reset: bool)
src/agents.rs:152
↓ 4 callers
Function
evaluate_expr
( expr: &Expr, state: &mut HashMap<String, Box<dyn Any>>, static_tools: &HashMap<String, StaticToo
src/local_python_interpreter.rs:476
↓ 4 callers
Method
forward
(&mut self, code: &str)
src/local_python_interpreter.rs:1026
↓ 4 callers
Method
tool_info
(&self)
src/tools/tool_traits.rs:94
↓ 4 callers
Method
write_inner_memory_from_logs
(&mut self, summary_mode: Option<bool>)
src/agents.rs:190
↓ 3 callers
Function
convert_bigint_to_f64
(i: &BigInt)
src/local_python_interpreter.rs:455
↓ 3 callers
Method
get_step_number
(&self)
src/agents.rs:345
↓ 2 callers
Method
call
(&self, arguments: &FunctionCall)
src/tools/tool_traits.rs:86
↓ 2 callers
Method
ctx_length
(mut self, ctx_length: usize)
src/models/ollama.rs:82
↓ 2 callers
Function
evaluate_ast
( ast: &ast::Suite, state: &mut HashMap<String, Box<dyn Any>>, static_tools: &HashMap<String, Stat
src/local_python_interpreter.rs:442
↓ 2 callers
Function
format_prompt_with_managed_agent_description
( prompt_template: String, managed_agents: &HashMap<String, Box<dyn Agent>>, agent_descriptions_pl
src/agents.rs:88
↓ 2 callers
Method
forward
(&self, query: &str)
src/tools/ddg_search.rs:40
↓ 2 callers
Method
forward_json
(&self, json_args: serde_json::Value)
src/tools/tool_traits.rs:116
↓ 2 callers
Function
get_base_python_tools
()
src/local_python_interpreter.rs:17
↓ 2 callers
Method
get_max_steps
(&self)
src/agents.rs:342
↓ 2 callers
Method
model_id
(mut self, model_id: &str)
src/models/ollama.rs:67
↓ 2 callers
Method
name
(&self)
src/tools/tool_traits.rs:108
↓ 2 callers
Method
run
(&mut self, task: &str, stream: bool, reset: bool)
examples/cli.rs:49
↓ 2 callers
Function
setup_custom_tools
(tools: Vec<Box<dyn AnyTool>>)
src/local_python_interpreter.rs:226
↓ 2 callers
Function
setup_static_tools
( static_tools: HashMap<&'static str, &'static str>, )
src/local_python_interpreter.rs:256
↓ 2 callers
Function
show_agents_description
(managed_agents: &HashMap<String, Box<dyn Agent>>)
src/agents.rs:75
↓ 1 callers
Method
clone_box
(&self)
src/tools/tool_traits.rs:133
↓ 1 callers
Method
description
(&self)
src/tools/tool_traits.rs:112
↓ 1 callers
Method
direct_run
(&mut self, _task: &str)
src/agents.rs:120
↓ 1 callers
Method
enabled
(&self, metadata: &Metadata)
src/logger.rs:9
↓ 1 callers
Function
evaluate_stmt
( node: &ast::Stmt, state: &mut HashMap<String, Box<dyn Any>>, static_tools: &HashMap<String, Stat
src/local_python_interpreter.rs:328
↓ 1 callers
Method
flush
(&self)
src/logger.rs:113
↓ 1 callers
Function
format_prompt_with_tools
(tools: Vec<ToolInfo>, prompt_template: &str)
src/agents.rs:61
↓ 1 callers
Method
forward
(&self, arguments: FinalAnswerToolParams)
src/tools/final_answer.rs:42
↓ 1 callers
Method
forward
(&self, query: &str, filter_year: Option<&str>)
src/tools/google_search.rs:39
↓ 1 callers
Method
forward
(&self, url: &str)
src/tools/visit_website.rs:26
↓ 1 callers
Method
get_logs_mut
(&mut self)
src/bin/main.rs:55
↓ 1 callers
Method
get_logs_mut
(&mut self)
examples/cli.rs:55
↓ 1 callers
Method
get_parameter_names
(&self)
src/tools/tool_traits.rs:68
↓ 1 callers
Method
get_system_prompt
(&self)
src/agents.rs:351
↓ 1 callers
Function
get_tool_descriptions
(tools: &[ToolInfo])
src/agents.rs:58
↓ 1 callers
Method
get_tools_used
(&self)
src/models/openai.rs:97
↓ 1 callers
Method
increment_step_number
(&mut self)
src/agents.rs:354
↓ 1 callers
Method
initialize_system_prompt
(&mut self)
src/agents.rs:423
↓ 1 callers
Method
message
(&self)
src/errors.rs:16
↓ 1 callers
Method
model
(&self)
src/agents.rs:366
↓ 1 callers
Method
name
(&self)
src/agents.rs:339
↓ 1 callers
Function
parse_code_blobs
(code_blob: &str)
src/agents.rs:817
↓ 1 callers
Method
provide_final_answer
(&mut self, task: &str)
src/agents.rs:172
↓ 1 callers
Method
reset_step_number
(&mut self)
src/agents.rs:357
↓ 1 callers
Method
run
(&mut self, task: &str, stream: bool, reset: bool)
src/bin/main.rs:49
↓ 1 callers
Method
set_task
(&mut self, task: &str)
src/agents.rs:348
↓ 1 callers
Method
step
Perform one step in the ReAct framework: the agent thinks, acts, and observes the result. Returns None if the step is not final.
src/agents.rs:373
↓ 1 callers
Method
stream_run
(&mut self, _task: &str)
src/agents.rs:149
↓ 1 callers
Method
tuple
(&self)
src/local_python_interpreter.rs:142
↓ 1 callers
Function
user_prompt_plan
The user prompt for the plan agent. This prompt is used to develop a step-by-step high-level plan to solve a task.
src/prompts.rs:201
Function
create_tool
(tool_type: &ToolType)
src/bin/main.rs:109
Function
create_tool
(tool_type: &ToolType)
examples/cli.rs:117
Method
description
(&self)
src/agents.rs:115
Method
description
(&self)
src/agents.rs:363
Method
description
(&self)
src/tools/final_answer.rs:38
Method
description
(&self)
src/tools/ddg_search.rs:92
Method
description
(&self)
src/tools/google_search.rs:128
Method
description
(&self)
src/tools/visit_website.rs:79
Method
description
(&self)
src/tools/base.rs:28
Method
description
(&self)
src/tools/python_interpreter.rs:44
Function
deserialize_arguments
Add this function to handle argument deserialization
src/models/openai.rs:46
Method
float
(&self)
src/local_python_interpreter.rs:95
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/agents.rs:293
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/errors.rs:26
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/models/types.rs:17
Method
forward
(&self, _arguments: serde_json::Value)
src/tools/base.rs:31
Method
forward
(&self, arguments: PythonInterpreterToolParams)
src/tools/python_interpreter.rs:47
Method
from
(err: PyErr)
src/local_python_interpreter.rs:78
Method
get_arguments
(&self)
src/models/openai.rs:63
Function
get_json_schema
(tool: &ToolInfo)
src/tools/tool_traits.rs:76
Method
get_response
(&self)
src/models/ollama.rs:28
Function
get_tool_description_with_args
(tool: &ToolInfo)
src/agents.rs:44
Method
get_tools_used
(&self)
src/models/ollama.rs:32
Method
log
(&self, record: &Record)
src/logger.rs:13
Function
main
()
src/bin/main.rs:117
Function
main
()
examples/cli.rs:125
Function
main
()
examples/function_calling_agent.rs:5
Method
name
(&self)
src/tools/final_answer.rs:35
Method
name
(&self)
src/tools/ddg_search.rs:89
Method
name
(&self)
src/tools/google_search.rs:125
Method
name
(&self)
src/tools/visit_website.rs:75
Method
name
(&self)
src/tools/base.rs:24
Method
name
(&self)
src/tools/python_interpreter.rs:41
Method
new
( model: M, mut tools: Vec<Box<dyn AnyTool>>, system_prompt: Option<&str>, man
src/agents.rs:379
Method
new
(custom_tools: Vec<Box<dyn AnyTool>>)
src/local_python_interpreter.rs:1016
Method
new
()
src/tools/final_answer.rs:23
Method
new
(tool: &T)
src/tools/tool_traits.rs:51
Method
new
()
src/tools/ddg_search.rs:31
Method
new
(api_key: Option<String>)
src/tools/google_search.rs:27
Method
new
()
src/tools/visit_website.rs:17
Method
new
()
src/tools/python_interpreter.rs:30
next →
1–100 of 122, ranked by callers