MCPcopy Create free account

hub / github.com/Nardien/agent-distillation / functions

Functions494 in github.com/Nardien/agent-distillation

Methodfrom_hf_api
(cls, tool_call)
src/smolagents/models.py:77
Methodfrom_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
Methodfrom_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
Methodfrom_langchain
Creates a [`Tool`] from a langchain tool.
src/smolagents/tools.py:626
Methodfrom_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
Methodget_agent_headline
(agent, name: Optional[str] = None)
src/smolagents/monitoring.py:193
Methodget_full_steps
(self)
src/smolagents/memory.py:222
Functionget_iterable
(obj)
src/smolagents/local_python_executor.py:171
Methodget_succinct_steps
(self)
src/smolagents/memory.py:217
Methodget_total_token_counts
(self)
src/smolagents/monitoring.py:45
Functionget_variable_names
(self, template: str)
src/smolagents/agents.py:79
Functiongo_back
Goes back to previous page.
src/smolagents/vision_web_browser.py:91
Methodinitialize_system_prompt
(self)
src/smolagents/agents.py:1166
Methodinitialize_system_prompt
(self, use_short_system_message=False)
src/smolagents/agents.py:1416
Functioninner
(func)
src/smolagents/tools.py:750
Methodinteract_with_agent
(self, prompt, messages, session_state)
src/smolagents/gradio_ui.py:201
Functionis_same_item
Compare two class items (methods or attributes) for equality.
src/smolagents/utils.py:286
Functionlambda_func
(*values: Any)
src/smolagents/local_python_executor.py:451
Functionlaunch_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
Functionload_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
Methodlog_user_message
(self, text_input, file_uploads_log)
src/smolagents/gradio_ui.py:250
Methodlogs
(self)
src/smolagents/agents.py:505
Functionmath_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
Functionmath_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
Functionmath_equal_process
(param)
exps_research/unified_framework/math_utils/qwen_math_grader.py:271
Methodmodel_dump_json
(self)
src/smolagents/models.py:92
Functionnew_func
(*args: Any, **kwargs: Any)
src/smolagents/local_python_executor.py:497
Functionnew_init
(self, *args, **kwargs)
src/smolagents/tools.py:58
Functionpreprocess_reward_dataset
(log_path)
exps_research/train_utils/preprocess.py:220
Functionpreprocess_rollout_dataset
(log_path)
exps_research/train_utils/preprocess.py:254
Methodprocess_entry
Process an agent experiment entry Args: entry: Dictionary containing a question model: Model instance
exps_research/unified_framework/processors/agent.py:37
Methodprocess_entry
Process a reasoning experiment entry Args: entry: Dictionary containing a question model: Model instance
exps_research/unified_framework/processors/reasoning.py:51
Functionprocess_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
Methodprocess_func
(entry, model_idx)
exps_research/unified_framework/processors/base.py:305
Methodpush_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
Methodpush_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
Functionread_jsonl
(file_path)
search/retriever_server.py:36
Methodreassign_api_base
(self, new_api_base)
src/smolagents/models.py:1237
Functionremove_instruction_from_user_message
(messages)
exps_research/train_utils/preprocess.py:69
Functionreplace_bracketed_content
(match)
src/smolagents/utils.py:68
Methodreplacement
(match)
src/smolagents/tools.py:235
Methodreplay
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
Methodreplay
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
Methodreset
(self)
src/smolagents/memory.py:214
Methodreset
(self)
src/smolagents/models.py:761
Functionretrieve_endpoint
Endpoint that accepts queries and performs retrieval. Input format: { "queries": ["What is Python?", "Tell me about neural networks
search/retriever_server.py:354
Methodrun_code_raise_errors
(self, code: str, return_final_answer: bool = False)
src/smolagents/remote_executors.py:117
Methodrun_code_raise_errors
Execute code and return result based on whether it's a final answer.
src/smolagents/remote_executors.py:253
Methodsafe_step
(self, memory_step: ActionStep)
src/smolagents/agents.py:1594
Functionsafer_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
Functionsave_screenshot
(memory_step: ActionStep, agent: CodeAgent)
src/smolagents/vision_web_browser.py:51
Functionsearch_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
Methodsend_tools
(self, tools: Dict[str, Tool])
src/smolagents/local_python_executor.py:1643
Methodsend_variables
(self, variables: dict)
src/smolagents/local_python_executor.py:1640
Methodserialize_chat_message
(msg)
src/smolagents/agents.py:654
Methodserialize_memory_step
(step)
src/smolagents/agents.py:681
Methodstep
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
Methodstop_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
Functionsymbolic_equal_process
(a, b, output_queue)
exps_research/unified_framework/math_utils/qwen_math_parser.py:890
Functionsymbolic_equal_process
(a, b, output_queue)
exps_research/unified_framework/math_utils/qwen_math_grader.py:341
Functionsymbolic_equal_process
(a, b, output_queue)
exps_research/unified_framework/processors/qwen_math_parser.py:890
Functiontimeout_handler
(signum, frame)
exps_research/unified_framework/math_utils/group.py:21
Methodto_dict
Converts the model into a JSON-compatible dictionary.
src/smolagents/models.py:363
Methodto_messages
(self, **kwargs)
src/smolagents/memory.py:47
Methodto_messages
(self, summary_mode: bool = False, show_model_input_messages: bool = False)
src/smolagents/memory.py:82
Methodto_messages
(self)
src/smolagents/memory.py:148
Methodto_messages
(self, summary_mode: bool, train_mode: bool = False, **kwargs)
src/smolagents/memory.py:163
Methodto_messages
(self, summary_mode: bool = False, **kwargs)
src/smolagents/memory.py:198
Methodto_raw
(self)
src/smolagents/agent_types.py:66
Methodto_raw
Returns the "raw" version of that object. It is a `torch.Tensor` object.
src/smolagents/agent_types.py:215
Methodto_string
(self)
src/smolagents/agent_types.py:69
Functiontool_forward
(*args, **kwargs)
src/smolagents/tools.py:679
Methodtorch_call
(self, examples: list[Union[list[int], Any, dict[str, Any]]])
exps_research/train_utils/utils.py:120
Methodupdate_metrics
Update the metrics of the monitor. Args: step_log ([`MemoryStep`]): Step log to update the monitor with.
src/smolagents/monitoring.py:56
Methodupload_file
Handle file uploads, default allowed types are .pdf, .docx, and .txt
src/smolagents/gradio_ui.py:222
Methodvisit_AnnAssign
Track annotated assignments.
src/smolagents/tool_validation.py:69
Methodvisit_Assign
(self, node)
src/smolagents/tool_validation.py:49
Methodvisit_Assign
(self, node)
src/smolagents/tool_validation.py:178
Methodvisit_Attribute
(self, node)
src/smolagents/tool_validation.py:111
Methodvisit_Call
(self, node)
src/smolagents/tool_validation.py:130
Methodvisit_DictComp
Track variables in dictionary comprehensions
src/smolagents/tool_validation.py:101
Methodvisit_ExceptHandler
Track exception aliases (the 'e' in 'except Exception as e')
src/smolagents/tool_validation.py:63
Methodvisit_For
(self, node)
src/smolagents/tool_validation.py:76
Methodvisit_FunctionDef
(self, node)
src/smolagents/tool_validation.py:170
Methodvisit_Import
(self, node)
src/smolagents/utils.py:251
Methodvisit_Import
(self, node)
src/smolagents/tool_validation.py:38
Methodvisit_ImportFrom
(self, node)
src/smolagents/utils.py:257
Methodvisit_ImportFrom
(self, node)
src/smolagents/tool_validation.py:43
Methodvisit_ListComp
Track variables in list comprehensions
src/smolagents/tool_validation.py:96
Methodvisit_Name
(self, node)
src/smolagents/tool_validation.py:115
Methodvisit_SetComp
Track variables in set comprehensions
src/smolagents/tool_validation.py:106
Methodvisit_With
Track aliases in 'with' statements (the 'y' in 'with X as y')
src/smolagents/tool_validation.py:55
Methodvisit_arguments
Collect function arguments
src/smolagents/tool_validation.py:30
Methodvisualize
Creates a rich tree visualization of the agent's structure.
src/smolagents/agents.py:529
← previous401–494 of 494, ranked by callers