MCPcopy Create free account

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

Functions494 in github.com/Nardien/agent-distillation

Method__init__
(self, config)
search/retriever_server.py:135
Method__init__
(self, config)
search/retriever_server.py:156
Method__init__
(self, config)
search/retriever_server.py:217
Method__init__
( self, tools: List[Tool], model: Callable[[List[Dict[str, str]]], ChatMessage],
src/smolagents/agents.py:194
Method__init__
( self, tools: List[Tool], model: Callable[[List[Dict[str, str]]], ChatMessage],
src/smolagents/agents.py:1147
Method__init__
(self, value)
src/smolagents/agent_types.py:78
Method__init__
(self, value, samplerate=16_000)
src/smolagents/agent_types.py:180
Method__init__
(self, tracked_model, logger)
src/smolagents/monitoring.py:37
Method__init__
(self, level: LogLevel = LogLevel.INFO)
src/smolagents/monitoring.py:88
Method__init__
(self, system_prompt: str)
src/smolagents/memory.py:210
Method__init__
(self)
src/smolagents/local_python_executor.py:133
Method__init__
(self, value)
src/smolagents/local_python_executor.py:167
Method__init__
(self, value)
src/smolagents/local_python_executor.py:1511
Method__init__
( self, additional_authorized_imports: List[str], max_print_outputs_length: Optional[i
src/smolagents/local_python_executor.py:1610
Method__init__
(self, message, logger: "AgentLogger" = None)
src/smolagents/utils.py:81
Method__init__
(self)
src/smolagents/utils.py:248
Method__init__
( self, model_id, local_device_id: str = -1, **kwargs )
src/smolagents/models.py:425
Method__init__
( self, model_id: str, tool_name_key: str = "name", tool_arguments_key: str =
src/smolagents/models.py:584
Method__init__
( self, model_id: Optional[str] = None, device_map: Optional[str] = None, torc
src/smolagents/models.py:690
Method__init__
(self, stop_strings: List[str], tokenizer)
src/smolagents/models.py:756
Method__init__
(self, **kwargs)
src/smolagents/models.py:858
Method__init__
( self, model_id: Optional[str] = None, api_base=None, api_key=None, c
src/smolagents/models.py:893
Method__init__
( self, model_id: str = "Qwen/Qwen2.5-Coder-32B-Instruct", provider: Optional[str] = N
src/smolagents/models.py:1003
Method__init__
( self, model_id: str, api_base: Optional[str] = None, api_key: Optional[str]
src/smolagents/models.py:1072
Method__init__
( self, model_id: str, azure_endpoint: Optional[str] = None, api_key: Optional
src/smolagents/models.py:1155
Method__init__
( self, model_id: str, api_base: Optional[str] = "http://0.0.0.0:8000/v1", api
src/smolagents/models.py:1208
Method__init__
(self, *args, authorized_imports=None, **kwargs)
src/smolagents/default_tools.py:49
Method__init__
(self, max_results=3, **kwargs)
src/smolagents/default_tools.py:107
Method__init__
(self, max_output_length: int = 40000)
src/smolagents/default_tools.py:226
Method__init__
( self, user_agent: str = "Smolagents (myemail@example.com)", language: str = "en",
src/smolagents/default_tools.py:301
Method__init__
(self, max_results=3, **kwargs)
src/smolagents/default_tools.py:406
Method__init__
(self, additional_imports: List[str], logger)
src/smolagents/remote_executors.py:45
Method__init__
Initialize the Docker-based Jupyter Kernel Gateway executor.
src/smolagents/remote_executors.py:164
Method__init__
( self, space_id: str, name: str, description:
src/smolagents/tools.py:520
Method__init__
(self, _gradio_tool)
src/smolagents/tools.py:612
Method__init__
(self, _langchain_tool)
src/smolagents/tools.py:634
Method__init__
(self, tools: List[Tool])
src/smolagents/tools.py:769
Method__init__
(self)
src/smolagents/tools.py:881
Method__init__
( self, model=None, pre_processor=None, post_processor=None, device=No
src/smolagents/tools.py:981
Method__init__
(self, agent: MultiStepAgent, file_upload_folder: str | None = None)
src/smolagents/gradio_ui.py:188
Method__init__
(self, class_attributes: Set[str], check_imports: bool = True)
src/smolagents/tool_validation.py:19
Method__init__
(self)
src/smolagents/tool_validation.py:162
Method__init__
( self, response_template: Union[str, list[int]], instruction_template: Optional[Union
exps_research/train_utils/utils.py:65
Method__init__
Initialize experiment processor Args: model_kwargs: Model configuration parameters **kwargs: Additio
exps_research/unified_framework/processors/base.py:95
Method__init__
Initialize the agent experiment processor with a rich console if available
exps_research/unified_framework/processors/agent.py:31
Method__init__
Initialize the reasoning experiment processor with a rich console if available
exps_research/unified_framework/processors/reasoning.py:45
Method__init_subclass__
(cls, **kwargs)
src/smolagents/tools.py:112
Method__len__
Implements len() function support
src/smolagents/local_python_executor.py:153
Method__new__
(cls, *args, **kwargs)
src/smolagents/default_tools.py:372
Method__new__
(cls)
exps_research/unified_framework/processors/cost_tracker.py:20
Method__repr__
Representation for debugging
src/smolagents/local_python_executor.py:149
Method__str__
(self)
src/smolagents/agent_types.py:45
Method__str__
String representation
src/smolagents/local_python_executor.py:145
Method_batch_search
(self, query_list: List[str], num: int = None, return_score: bool = False)
search/retriever_server.py:204
Method_batch_search
(self, query_list: List[str], num: int = None, return_score: bool = False)
search/retriever_server.py:250
Function_check_return
( expression, state, static_tools, custom_tools, authorized_imports=BA
src/smolagents/local_python_executor.py:380
Method_ipython_display_
Displays correctly this type in an ipython notebook (ipython, colab, jupyter, ...)
src/smolagents/agent_types.py:110
Method_ipython_display_
Displays correctly this type in an ipython notebook (ipython, colab, jupyter, ...)
src/smolagents/agent_types.py:207
Method_search
(self, query: str, num: int = None, return_score: bool = False)
search/retriever_server.py:237
Functionadd_description
A decorator that adds a description to a function.
src/smolagents/tools.py:745
Methodadd_self_argument
Add 'self' as first argument to a function definition if not present.
src/smolagents/tools.py:231
Methodbuild_agent_tree
Recursively builds the agent tree.
src/smolagents/monitoring.py:197
Functionclean_units
Clean the units in the number.
exps_research/unified_framework/math_utils/qwen_math_parser.py:460
Functionclean_units
Clean the units in the number.
exps_research/unified_framework/processors/qwen_math_parser.py:460
Methodcleanup
(self)
src/smolagents/models.py:463
Functionclose_popups
Closes any visible modal or pop-up on the page. Use this to dismiss pop-up windows! This does not work on cookie consent banners.
src/smolagents/vision_web_browser.py:97
Methodcreate_client
(self)
src/smolagents/models.py:1184
Methodcreate_tools_section
(tools_dict)
src/smolagents/monitoring.py:178
Functioncustom_print
(*args)
src/smolagents/local_python_executor.py:60
Methoddecode
(self, outputs)
src/smolagents/default_tools.py:391
Methoddelete
Ensure cleanup on deletion.
src/smolagents/remote_executors.py:350
Methoddict
(self)
src/smolagents/memory.py:44
Methoddict
(self)
src/smolagents/memory.py:66
Methoddict
(self)
src/smolagents/utils.py:87
Methoddict
(self)
src/smolagents/models.py:114
Methodencode
(self, audio)
src/smolagents/default_tools.py:382
Functionevaluate_factual_answer
Evaluate if the predicted answer matches the gold answer using the model Returns dict with score and explanation
exps_research/unified_framework/score_answers.py:48
Functionevaluate_math_answer
Evaluate if the predicted answer matches the gold answer using the model Returns dict with score and explanation
exps_research/unified_framework/score_answers.py:99
Methodextract_action
Parse action from the LLM output Args: model_output (`str`): Output of the LLM split_token (`str`): Separato
src/smolagents/agents.py:533
Functionextract_multi_choice_answer
(pred_str)
exps_research/unified_framework/math_utils/qwen_math_parser.py:379
Functionextract_multi_choice_answer
(pred_str)
exps_research/unified_framework/processors/qwen_math_parser.py:379
Functionfinal_answer
(answer)
src/smolagents/local_python_executor.py:1573
Functionfind_answer_with_largest_sum
Groups answers based on their canonical forms and finds the group with the largest sum of scores. Args: answers (list of str): A lis
exps_research/unified_framework/math_utils/group.py:73
Functionfind_box
(pred_str: str)
exps_research/unified_framework/math_utils/qwen_math_parser.py:437
Functionfind_box
(pred_str: str)
exps_research/unified_framework/processors/qwen_math_parser.py:437
Functionfind_majority_answer
Groups answers based on their canonical forms and finds the group with the largest number of elements. In case of a tie, returns the first oc
exps_research/unified_framework/math_utils/group.py:116
Methodforward
(self, code: str)
src/smolagents/default_tools.py:67
Methodforward
(self, answer: Any)
src/smolagents/default_tools.py:86
Methodforward
(self, question)
src/smolagents/default_tools.py:96
Methodforward
(self, query: str)
src/smolagents/default_tools.py:118
Methodforward
(self, query: str, filter_year: Optional[int] = None)
src/smolagents/default_tools.py:154
Methodforward
(self, url: str)
src/smolagents/default_tools.py:230
Methodforward
(self, query: str)
src/smolagents/default_tools.py:337
Methodforward
(self, inputs)
src/smolagents/default_tools.py:388
Methodforward
(self, query: str)
src/smolagents/default_tools.py:415
Methodforward
(self, *args, **kwargs)
src/smolagents/tools.py:581
Methodforward
(self, *args, **kwargs)
src/smolagents/tools.py:646
Methodfrom_dict
(cls, data: dict, raw: Any | None = None)
src/smolagents/models.py:103
Methodfrom_gradio
Creates a [`Tool`] from a gradio tool.
src/smolagents/tools.py:605
Methodfrom_hf_api
(cls, tool_call_definition)
src/smolagents/models.py:62
← previousnext →301–400 of 494, ranked by callers