Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Nardien/agent-distillation
/ functions
Functions
494 in github.com/Nardien/agent-distillation
⨍
Functions
494
◇
Types & classes
93
↳
Endpoints
1
Method
from_hf_api
(cls, tool_call)
src/smolagents/models.py:77
Method
from_hub
Loads an agent defined on the Hub. <Tip warning={true}> Loading a tool from the Hub means that you'll download the tool and
src/smolagents/agents.py:925
Method
from_hub
Loads a tool collection from the Hub. it adds a collection of tools from all Spaces in the collection to the agent's toolbox > [!NOT
src/smolagents/tools.py:773
Method
from_langchain
Creates a [`Tool`] from a langchain tool.
src/smolagents/tools.py:626
Method
from_mcp
Automatically load a tool collection from an MCP server. This method supports both SSE and Stdio MCP servers. Look at the `sever_parameters`
src/smolagents/tools.py:814
Method
get_agent_headline
(agent, name: Optional[str] = None)
src/smolagents/monitoring.py:193
Method
get_full_steps
(self)
src/smolagents/memory.py:222
Function
get_iterable
(obj)
src/smolagents/local_python_executor.py:171
Method
get_succinct_steps
(self)
src/smolagents/memory.py:217
Method
get_total_token_counts
(self)
src/smolagents/monitoring.py:45
Function
get_variable_names
(self, template: str)
src/smolagents/agents.py:79
Function
go_back
Goes back to previous page.
src/smolagents/vision_web_browser.py:91
Method
initialize_system_prompt
(self)
src/smolagents/agents.py:1166
Method
initialize_system_prompt
(self, use_short_system_message=False)
src/smolagents/agents.py:1416
Function
inner
(func)
src/smolagents/tools.py:750
Method
interact_with_agent
(self, prompt, messages, session_state)
src/smolagents/gradio_ui.py:201
Function
is_same_item
Compare two class items (methods or attributes) for equality.
src/smolagents/utils.py:286
Function
lambda_func
(*values: Any)
src/smolagents/local_python_executor.py:451
Function
launch_gradio_demo
Launches a gradio demo for a tool. The corresponding tool class needs to properly implement the class attributes `inputs` and `output_type`.
src/smolagents/tools.py:657
Function
load_tool
Main function to quickly load a tool from the Hub. <Tip warning={true}> Loading a tool means that you'll download the tool and execute
src/smolagents/tools.py:703
Method
log_user_message
(self, text_input, file_uploads_log)
src/smolagents/gradio_ui.py:250
Method
logs
(self)
src/smolagents/agents.py:505
Function
math_equal
Exact match of math if and only if: 1. numerical equal: both can convert to float and are equal 2. symbolic equal: both can convert to sy
exps_research/unified_framework/math_utils/qwen_math_parser.py:635
Function
math_equal
Exact match of math if and only if: 1. numerical equal: both can convert to float and are equal 2. symbolic equal: both can convert to sy
exps_research/unified_framework/processors/qwen_math_parser.py:635
Function
math_equal_process
(param)
exps_research/unified_framework/math_utils/qwen_math_grader.py:271
Method
model_dump_json
(self)
src/smolagents/models.py:92
Function
new_func
(*args: Any, **kwargs: Any)
src/smolagents/local_python_executor.py:497
Function
new_init
(self, *args, **kwargs)
src/smolagents/tools.py:58
Function
preprocess_reward_dataset
(log_path)
exps_research/train_utils/preprocess.py:220
Function
preprocess_rollout_dataset
(log_path)
exps_research/train_utils/preprocess.py:254
Method
process_entry
Process an agent experiment entry Args: entry: Dictionary containing a question model: Model instance
exps_research/unified_framework/processors/agent.py:37
Method
process_entry
Process a reasoning experiment entry Args: entry: Dictionary containing a question model: Model instance
exps_research/unified_framework/processors/reasoning.py:51
Function
process_entry_in_process
Top-level function to process a single entry in a separate process Args: entry: The entry to process worker_id: ID of th
exps_research/unified_framework/processors/base.py:23
Method
process_func
(entry, model_idx)
exps_research/unified_framework/processors/base.py:305
Method
push_to_hub
Upload the agent to the Hub. Parameters: repo_id (`str`): The name of the repository you want to push to
src/smolagents/agents.py:1023
Method
push_to_hub
Upload the tool to the Hub. Parameters: repo_id (`str`): The name of the repository you want to push you
src/smolagents/tools.py:297
Function
read_jsonl
(file_path)
search/retriever_server.py:36
Method
reassign_api_base
(self, new_api_base)
src/smolagents/models.py:1237
Function
remove_instruction_from_user_message
(messages)
exps_research/train_utils/preprocess.py:69
Function
replace_bracketed_content
(match)
src/smolagents/utils.py:68
Method
replacement
(match)
src/smolagents/tools.py:235
Method
replay
Prints a pretty replay of the agent's steps. Args: detailed (bool, optional): If True, also displays the memory at each step. Def
src/smolagents/agents.py:610
Method
replay
Prints a pretty replay of the agent's steps. Args: logger (AgentLogger): The logger to print replay logs to. detailed
src/smolagents/memory.py:225
Method
reset
(self)
src/smolagents/memory.py:214
Method
reset
(self)
src/smolagents/models.py:761
Function
retrieve_endpoint
Endpoint that accepts queries and performs retrieval. Input format: { "queries": ["What is Python?", "Tell me about neural networks
search/retriever_server.py:354
Method
run_code_raise_errors
(self, code: str, return_final_answer: bool = False)
src/smolagents/remote_executors.py:117
Method
run_code_raise_errors
Execute code and return result based on whether it's a final answer.
src/smolagents/remote_executors.py:253
Method
safe_step
(self, memory_step: ActionStep)
src/smolagents/agents.py:1594
Function
safer_eval
Decorator to make the evaluation of a function safer by checking its return value. Args: func: Function to make safer. Returns:
src/smolagents/local_python_executor.py:368
Function
save_screenshot
(memory_step: ActionStep, agent: CodeAgent)
src/smolagents/vision_web_browser.py:51
Function
search_item_ctrl_f
Searches for text on the current page via Ctrl + F and jumps to the nth occurrence. Args: text: The text to search for nth_re
src/smolagents/vision_web_browser.py:73
Method
send_tools
(self, tools: Dict[str, Tool])
src/smolagents/local_python_executor.py:1643
Method
send_variables
(self, variables: dict)
src/smolagents/local_python_executor.py:1640
Method
serialize_chat_message
(msg)
src/smolagents/agents.py:654
Method
serialize_memory_step
(step)
src/smolagents/agents.py:681
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/smolagents/agents.py:1173
Method
stop_requested
Check if execution should stop due to cost threshold Returns: True if cost threshold has been reached, False oth
exps_research/unified_framework/processors/cost_tracker.py:58
Function
symbolic_equal_process
(a, b, output_queue)
exps_research/unified_framework/math_utils/qwen_math_parser.py:890
Function
symbolic_equal_process
(a, b, output_queue)
exps_research/unified_framework/math_utils/qwen_math_grader.py:341
Function
symbolic_equal_process
(a, b, output_queue)
exps_research/unified_framework/processors/qwen_math_parser.py:890
Function
timeout_handler
(signum, frame)
exps_research/unified_framework/math_utils/group.py:21
Method
to_dict
Converts the model into a JSON-compatible dictionary.
src/smolagents/models.py:363
Method
to_messages
(self, **kwargs)
src/smolagents/memory.py:47
Method
to_messages
(self, summary_mode: bool = False, show_model_input_messages: bool = False)
src/smolagents/memory.py:82
Method
to_messages
(self)
src/smolagents/memory.py:148
Method
to_messages
(self, summary_mode: bool, train_mode: bool = False, **kwargs)
src/smolagents/memory.py:163
Method
to_messages
(self, summary_mode: bool = False, **kwargs)
src/smolagents/memory.py:198
Method
to_raw
(self)
src/smolagents/agent_types.py:66
Method
to_raw
Returns the "raw" version of that object. It is a `torch.Tensor` object.
src/smolagents/agent_types.py:215
Method
to_string
(self)
src/smolagents/agent_types.py:69
Function
tool_forward
(*args, **kwargs)
src/smolagents/tools.py:679
Method
torch_call
(self, examples: list[Union[list[int], Any, dict[str, Any]]])
exps_research/train_utils/utils.py:120
Method
update_metrics
Update the metrics of the monitor. Args: step_log ([`MemoryStep`]): Step log to update the monitor with.
src/smolagents/monitoring.py:56
Method
upload_file
Handle file uploads, default allowed types are .pdf, .docx, and .txt
src/smolagents/gradio_ui.py:222
Method
visit_AnnAssign
Track annotated assignments.
src/smolagents/tool_validation.py:69
Method
visit_Assign
(self, node)
src/smolagents/tool_validation.py:49
Method
visit_Assign
(self, node)
src/smolagents/tool_validation.py:178
Method
visit_Attribute
(self, node)
src/smolagents/tool_validation.py:111
Method
visit_Call
(self, node)
src/smolagents/tool_validation.py:130
Method
visit_DictComp
Track variables in dictionary comprehensions
src/smolagents/tool_validation.py:101
Method
visit_ExceptHandler
Track exception aliases (the 'e' in 'except Exception as e')
src/smolagents/tool_validation.py:63
Method
visit_For
(self, node)
src/smolagents/tool_validation.py:76
Method
visit_FunctionDef
(self, node)
src/smolagents/tool_validation.py:170
Method
visit_Import
(self, node)
src/smolagents/utils.py:251
Method
visit_Import
(self, node)
src/smolagents/tool_validation.py:38
Method
visit_ImportFrom
(self, node)
src/smolagents/utils.py:257
Method
visit_ImportFrom
(self, node)
src/smolagents/tool_validation.py:43
Method
visit_ListComp
Track variables in list comprehensions
src/smolagents/tool_validation.py:96
Method
visit_Name
(self, node)
src/smolagents/tool_validation.py:115
Method
visit_SetComp
Track variables in set comprehensions
src/smolagents/tool_validation.py:106
Method
visit_With
Track aliases in 'with' statements (the 'y' in 'with X as y')
src/smolagents/tool_validation.py:55
Method
visit_arguments
Collect function arguments
src/smolagents/tool_validation.py:30
Method
visualize
Creates a rich tree visualization of the agent's structure.
src/smolagents/agents.py:529
← previous
401–494 of 494, ranked by callers