MCPcopy Create free account

hub / github.com/akshayballal95/smolagents-rs / functions

Functions122 in github.com/akshayballal95/smolagents-rs

↓ 23 callersFunctionevaluate_python_code
( code: &str, custom_tools: Vec<Box<dyn AnyTool>>, state: &mut HashMap<String, Box<dyn Any>>, )
src/local_python_interpreter.rs:994
↓ 11 callersMethodstr
(&self)
src/local_python_interpreter.rs:101
↓ 9 callersFunctionconvert_bigint_to_i64
(i: &BigInt)
src/local_python_interpreter.rs:463
↓ 9 callersMethodinto_py
(self, py: Python<'_>)
src/local_python_interpreter.rs:196
↓ 8 callersMethodget_logs_mut
(&mut self)
src/agents.rs:360
↓ 6 callersFunctionextract_constant_from_pyobject
( obj: &PyAny, py: Python<'_>, )
src/local_python_interpreter.rs:951
↓ 5 callersMethodbuild
(self)
src/models/ollama.rs:87
↓ 5 callersMethodget_response
(&self)
src/models/openai.rs:84
↓ 5 callersMethodrun
(&mut self, task: &str, stream: bool, reset: bool)
src/agents.rs:152
↓ 4 callersFunctionevaluate_expr
( expr: &Expr, state: &mut HashMap<String, Box<dyn Any>>, static_tools: &HashMap<String, StaticToo
src/local_python_interpreter.rs:476
↓ 4 callersMethodforward
(&mut self, code: &str)
src/local_python_interpreter.rs:1026
↓ 4 callersMethodtool_info
(&self)
src/tools/tool_traits.rs:94
↓ 4 callersMethodwrite_inner_memory_from_logs
(&mut self, summary_mode: Option<bool>)
src/agents.rs:190
↓ 3 callersFunctionconvert_bigint_to_f64
(i: &BigInt)
src/local_python_interpreter.rs:455
↓ 3 callersMethodget_step_number
(&self)
src/agents.rs:345
↓ 2 callersMethodcall
(&self, arguments: &FunctionCall)
src/tools/tool_traits.rs:86
↓ 2 callersMethodctx_length
(mut self, ctx_length: usize)
src/models/ollama.rs:82
↓ 2 callersFunctionevaluate_ast
( ast: &ast::Suite, state: &mut HashMap<String, Box<dyn Any>>, static_tools: &HashMap<String, Stat
src/local_python_interpreter.rs:442
↓ 2 callersFunctionformat_prompt_with_managed_agent_description
( prompt_template: String, managed_agents: &HashMap<String, Box<dyn Agent>>, agent_descriptions_pl
src/agents.rs:88
↓ 2 callersMethodforward
(&self, query: &str)
src/tools/ddg_search.rs:40
↓ 2 callersMethodforward_json
(&self, json_args: serde_json::Value)
src/tools/tool_traits.rs:116
↓ 2 callersFunctionget_base_python_tools
()
src/local_python_interpreter.rs:17
↓ 2 callersMethodget_max_steps
(&self)
src/agents.rs:342
↓ 2 callersMethodmodel_id
(mut self, model_id: &str)
src/models/ollama.rs:67
↓ 2 callersMethodname
(&self)
src/tools/tool_traits.rs:108
↓ 2 callersMethodrun
(&mut self, task: &str, stream: bool, reset: bool)
examples/cli.rs:49
↓ 2 callersFunctionsetup_custom_tools
(tools: Vec<Box<dyn AnyTool>>)
src/local_python_interpreter.rs:226
↓ 2 callersFunctionsetup_static_tools
( static_tools: HashMap<&'static str, &'static str>, )
src/local_python_interpreter.rs:256
↓ 2 callersFunctionshow_agents_description
(managed_agents: &HashMap<String, Box<dyn Agent>>)
src/agents.rs:75
↓ 1 callersMethodclone_box
(&self)
src/tools/tool_traits.rs:133
↓ 1 callersMethoddescription
(&self)
src/tools/tool_traits.rs:112
↓ 1 callersMethoddirect_run
(&mut self, _task: &str)
src/agents.rs:120
↓ 1 callersMethodenabled
(&self, metadata: &Metadata)
src/logger.rs:9
↓ 1 callersFunctionevaluate_stmt
( node: &ast::Stmt, state: &mut HashMap<String, Box<dyn Any>>, static_tools: &HashMap<String, Stat
src/local_python_interpreter.rs:328
↓ 1 callersMethodflush
(&self)
src/logger.rs:113
↓ 1 callersFunctionformat_prompt_with_tools
(tools: Vec<ToolInfo>, prompt_template: &str)
src/agents.rs:61
↓ 1 callersMethodforward
(&self, arguments: FinalAnswerToolParams)
src/tools/final_answer.rs:42
↓ 1 callersMethodforward
(&self, query: &str, filter_year: Option<&str>)
src/tools/google_search.rs:39
↓ 1 callersMethodforward
(&self, url: &str)
src/tools/visit_website.rs:26
↓ 1 callersMethodget_logs_mut
(&mut self)
src/bin/main.rs:55
↓ 1 callersMethodget_logs_mut
(&mut self)
examples/cli.rs:55
↓ 1 callersMethodget_parameter_names
(&self)
src/tools/tool_traits.rs:68
↓ 1 callersMethodget_system_prompt
(&self)
src/agents.rs:351
↓ 1 callersFunctionget_tool_descriptions
(tools: &[ToolInfo])
src/agents.rs:58
↓ 1 callersMethodget_tools_used
(&self)
src/models/openai.rs:97
↓ 1 callersMethodincrement_step_number
(&mut self)
src/agents.rs:354
↓ 1 callersMethodinitialize_system_prompt
(&mut self)
src/agents.rs:423
↓ 1 callersMethodmessage
(&self)
src/errors.rs:16
↓ 1 callersMethodmodel
(&self)
src/agents.rs:366
↓ 1 callersMethodname
(&self)
src/agents.rs:339
↓ 1 callersFunctionparse_code_blobs
(code_blob: &str)
src/agents.rs:817
↓ 1 callersMethodprovide_final_answer
(&mut self, task: &str)
src/agents.rs:172
↓ 1 callersMethodreset_step_number
(&mut self)
src/agents.rs:357
↓ 1 callersMethodrun
(&mut self, task: &str, stream: bool, reset: bool)
src/bin/main.rs:49
↓ 1 callersMethodset_task
(&mut self, task: &str)
src/agents.rs:348
↓ 1 callersMethodstep
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 callersMethodstream_run
(&mut self, _task: &str)
src/agents.rs:149
↓ 1 callersMethodtuple
(&self)
src/local_python_interpreter.rs:142
↓ 1 callersFunctionuser_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
Functioncreate_tool
(tool_type: &ToolType)
src/bin/main.rs:109
Functioncreate_tool
(tool_type: &ToolType)
examples/cli.rs:117
Methoddescription
(&self)
src/agents.rs:115
Methoddescription
(&self)
src/agents.rs:363
Methoddescription
(&self)
src/tools/final_answer.rs:38
Methoddescription
(&self)
src/tools/ddg_search.rs:92
Methoddescription
(&self)
src/tools/google_search.rs:128
Methoddescription
(&self)
src/tools/visit_website.rs:79
Methoddescription
(&self)
src/tools/base.rs:28
Methoddescription
(&self)
src/tools/python_interpreter.rs:44
Functiondeserialize_arguments
Add this function to handle argument deserialization
src/models/openai.rs:46
Methodfloat
(&self)
src/local_python_interpreter.rs:95
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/agents.rs:293
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/errors.rs:26
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/models/types.rs:17
Methodforward
(&self, _arguments: serde_json::Value)
src/tools/base.rs:31
Methodforward
(&self, arguments: PythonInterpreterToolParams)
src/tools/python_interpreter.rs:47
Methodfrom
(err: PyErr)
src/local_python_interpreter.rs:78
Methodget_arguments
(&self)
src/models/openai.rs:63
Functionget_json_schema
(tool: &ToolInfo)
src/tools/tool_traits.rs:76
Methodget_response
(&self)
src/models/ollama.rs:28
Functionget_tool_description_with_args
(tool: &ToolInfo)
src/agents.rs:44
Methodget_tools_used
(&self)
src/models/ollama.rs:32
Methodlog
(&self, record: &Record)
src/logger.rs:13
Functionmain
()
src/bin/main.rs:117
Functionmain
()
examples/cli.rs:125
Functionmain
()
examples/function_calling_agent.rs:5
Methodname
(&self)
src/tools/final_answer.rs:35
Methodname
(&self)
src/tools/ddg_search.rs:89
Methodname
(&self)
src/tools/google_search.rs:125
Methodname
(&self)
src/tools/visit_website.rs:75
Methodname
(&self)
src/tools/base.rs:24
Methodname
(&self)
src/tools/python_interpreter.rs:41
Methodnew
( model: M, mut tools: Vec<Box<dyn AnyTool>>, system_prompt: Option<&str>, man
src/agents.rs:379
Methodnew
(custom_tools: Vec<Box<dyn AnyTool>>)
src/local_python_interpreter.rs:1016
Methodnew
()
src/tools/final_answer.rs:23
Methodnew
(tool: &T)
src/tools/tool_traits.rs:51
Methodnew
()
src/tools/ddg_search.rs:31
Methodnew
(api_key: Option<String>)
src/tools/google_search.rs:27
Methodnew
()
src/tools/visit_website.rs:17
Methodnew
()
src/tools/python_interpreter.rs:30
next →1–100 of 122, ranked by callers