MCPcopy Create free account

hub / github.com/Nardien/agent-distillation / types & classes

Types & classes93 in github.com/Nardien/agent-distillation

↓ 47 callersClassInterpreterError
An error raised when the interpreter cannot evaluate a Python expression, due to syntax error or unsupported operations.
src/smolagents/local_python_executor.py:40
↓ 12 callersClassMessage
src/smolagents/memory.py:20
↓ 6 callersClassTypeHintParsingException
Exception raised for errors in parsing type hints to generate JSON schemas
src/smolagents/_function_type_hints_utils.py:74
↓ 5 callersClassCodeAgent
In this agent, the tool calls will be formulated by the LLM in code format, then parsed and executed. Args: tools (`list[Tool]`): [`
src/smolagents/agents.py:1339
↓ 4 callersClassAgentError
Base class for other agent-related exceptions
src/smolagents/utils.py:78
↓ 4 callersClassVLLMServerModel
Model to use [vLLM](https://docs.vllm.ai/) server endpoint for fast LLM inference and serving. Parameters: model_id (`str`):
src/smolagents/models.py:1189
↓ 3 callersClassAgentParsingError
Exception raised for errors in parsing in the agent
src/smolagents/utils.py:91
↓ 3 callersClassChatMessage
src/smolagents/models.py:86
↓ 3 callersClassDuckDuckGoSearchTool
src/smolagents/default_tools.py:101
↓ 3 callersClassOpenAIServerModel
This model connects to an OpenAI-compatible API server. Parameters: model_id (`str`): The model identifier to use on the serv
src/smolagents/models.py:1047
↓ 3 callersClassWikipediaRetrieverTool
src/smolagents/default_tools.py:395
↓ 2 callersClassAgentAudio
Audio type returned by the agent.
src/smolagents/agent_types.py:175
↓ 2 callersClassAgentGenerationError
Exception raised for errors in generation in the agent
src/smolagents/utils.py:121
↓ 2 callersClassAgentToolExecutionError
Exception raised for errors when executing a tool
src/smolagents/utils.py:115
↓ 2 callersClassChatMessageToolCall
src/smolagents/models.py:71
↓ 2 callersClassChatMessageToolCallDefinition
src/smolagents/models.py:56
↓ 2 callersClassDocstringParsingException
Exception raised for errors in parsing docstrings to generate JSON schemas
src/smolagents/_function_type_hints_utils.py:78
↓ 2 callersClassFinalAnswerTool
src/smolagents/default_tools.py:80
↓ 2 callersClassMethodChecker
Checks that a method - only uses defined names - contains no local imports (e.g. numpy is ok but local_script is not)
src/smolagents/tool_validation.py:12
↓ 2 callersClassSystemPromptStep
src/smolagents/memory.py:195
↓ 2 callersClassToolCall
src/smolagents/memory.py:26
↓ 2 callersClassVLLMModel
Model to use [vLLM](https://docs.vllm.ai/) for fast LLM inference and serving. Parameters: model_id (`str`): The Hugging Face
src/smolagents/models.py:416
↓ 1 callersClassActionFinalizeStep
src/smolagents/memory.py:147
↓ 1 callersClassActionStep
src/smolagents/memory.py:52
↓ 1 callersClassAgentExecutionError
Exception raised for errors in execution in the agent
src/smolagents/utils.py:97
↓ 1 callersClassAgentImage
Image type returned by the agent. Behaves as a PIL.Image.Image.
src/smolagents/agent_types.py:73
↓ 1 callersClassAgentLogger
src/smolagents/monitoring.py:87
↓ 1 callersClassAgentMaxStepsError
Exception raised for errors in execution in the agent
src/smolagents/utils.py:103
↓ 1 callersClassAgentMemory
src/smolagents/memory.py:209
↓ 1 callersClassAgentText
Text type returned by the agent. Behaves as a string.
src/smolagents/agent_types.py:61
↓ 1 callersClassAgentToolCallError
Exception raised for errors when incorrect arguments are passed to the tool
src/smolagents/utils.py:109
↓ 1 callersClassBM25Retriever
search/retriever_server.py:155
↓ 1 callersClassBreakException
src/smolagents/local_python_executor.py:158
↓ 1 callersClassClassLevelChecker
src/smolagents/tool_validation.py:161
↓ 1 callersClassConfig
Minimal config class (simulating your argparse) Replace this with your real arguments or load them dynamically.
search/retriever_server.py:293
↓ 1 callersClassContinueException
src/smolagents/local_python_executor.py:162
↓ 1 callersClassCostTracker
Singleton class for tracking costs across threads This class provides thread-safe cost tracking capabilities for experiments. It's i
exps_research/unified_framework/processors/cost_tracker.py:9
↓ 1 callersClassDataCollatorForCompletionOnlyLMMultiTurn
Data collator used for completion tasks. It ensures that all the tokens of the labels are set to an 'ignore_index' when they do not come from
exps_research/train_utils/utils.py:40
↓ 1 callersClassDenseRetriever
search/retriever_server.py:216
↓ 1 callersClassDockerExecutor
Executes Python code using Jupyter Kernel Gateway in a Docker container.
src/smolagents/remote_executors.py:159
↓ 1 callersClassE2BExecutor
Executes Python code using E2B. Args: additional_imports (`list[str]`): Additional imports to install. logger (`Logger`): Lo
src/smolagents/remote_executors.py:95
↓ 1 callersClassEncoder
search/retriever_server.py:73
↓ 1 callersClassFinalAnswerException
src/smolagents/local_python_executor.py:1510
↓ 1 callersClassFinalAnswerPromptTemplate
Prompt templates for the final answer. Args: pre_messages (`str`): Pre-messages prompt. post_messages (`str`): Post-messages
src/smolagents/agents.py:126
↓ 1 callersClassFinalAnswerStep
src/smolagents/memory.py:205
↓ 1 callersClassGradioToolWrapper
src/smolagents/tools.py:611
↓ 1 callersClassHfApiModel
A class to interact with Hugging Face's Inference API for language model interaction. This model allows you to communicate with Hugging Face's mo
src/smolagents/models.py:960
↓ 1 callersClassImportFinder
src/smolagents/utils.py:247
↓ 1 callersClassLangChainToolWrapper
src/smolagents/tools.py:631
↓ 1 callersClassLiteLLMModel
Model to use [LiteLLM Python SDK](https://docs.litellm.ai/docs/#litellm-python-sdk) to access hundreds of LLMs. Parameters: model_id (`st
src/smolagents/models.py:874
↓ 1 callersClassLocalPythonExecutor
src/smolagents/local_python_executor.py:1609
↓ 1 callersClassManagedAgentPromptTemplate
Prompt templates for the managed agent. Args: task (`str`): Task prompt. report (`str`): Report prompt.
src/smolagents/agents.py:113
↓ 1 callersClassMonitor
src/smolagents/monitoring.py:36
↓ 1 callersClassPlanningPromptTemplate
Prompt templates for the planning step. Args: initial_facts (`str`): Initial facts prompt. initial_plan (`str`): Initial pla
src/smolagents/agents.py:92
↓ 1 callersClassPlanningStep
src/smolagents/memory.py:157
↓ 1 callersClassPrintContainer
src/smolagents/local_python_executor.py:132
↓ 1 callersClassPromptTemplates
Prompt templates for the agent. Args: system_prompt (`str`): System prompt. planning ([`~agents.PlanningPromptTemplate`]): P
src/smolagents/agents.py:139
↓ 1 callersClassReturnException
src/smolagents/local_python_executor.py:166
↓ 1 callersClassSimpleTool
src/smolagents/tools.py:880
↓ 1 callersClassSpaceToolWrapper
src/smolagents/tools.py:517
↓ 1 callersClassStopOnStrings
src/smolagents/models.py:755
↓ 1 callersClassTaskStep
src/smolagents/memory.py:181
↓ 1 callersClassTransformersModel
A class that uses Hugging Face's Transformers library for language model interaction. This model allows you to load and use Hugging Face's models
src/smolagents/models.py:650
ClassAgentExperimentProcessor
Processor for agent experiments This processor handles agent-based experiments where the model interacts with tools to solve problems.
exps_research/unified_framework/processors/agent.py:23
ClassAgentType
Abstract class to be reimplemented to define types that can be returned by agents. These objects serve three purposes: - They behave as
src/smolagents/agent_types.py:31
ClassApiModel
src/smolagents/models.py:857
ClassAzureOpenAIServerModel
This model connects to an Azure OpenAI deployment. Parameters: model_id (`str`): The model deployment name to use when connec
src/smolagents/models.py:1134
ClassBaseRetriever
search/retriever_server.py:134
ClassExperimentProcessor
Base class for experiment processors This abstract class defines the interface and common functionality for all experiment processor
exps_research/unified_framework/processors/base.py:86
ClassGoogleSearchTool
src/smolagents/default_tools.py:126
ClassGradioUI
A one-line interface to launch your agent in Gradio
src/smolagents/gradio_ui.py:185
ClassLogLevel
src/smolagents/monitoring.py:77
ClassMLXModel
A class to interact with models loaded using MLX on Apple silicon. > [!TIP] > You must have `mlx-lm` installed on your machine. Please run `p
src/smolagents/models.py:546
ClassMemoryStep
src/smolagents/memory.py:43
ClassMessageRole
src/smolagents/models.py:128
ClassModel
src/smolagents/models.py:261
ClassMultiStepAgent
Agent class that solves the given task step by step, using the ReAct framework: While the objective is not reached, the agent will perform a
src/smolagents/agents.py:171
ClassPipelineTool
A [`Tool`] tailored towards Transformer models. On top of the class attributes of the base class [`Tool`], you will need to specify: - *
src/smolagents/tools.py:933
ClassPreTool
src/smolagents/default_tools.py:29
ClassPythonExecutor
src/smolagents/local_python_executor.py:1605
ClassPythonInterpreterTool
src/smolagents/default_tools.py:38
ClassQueryRequest
search/retriever_server.py:327
ClassReasoningExperimentProcessor
Processor for reasoning experiments This processor handles direct reasoning-based QA experiments, where the model is given a question an
exps_research/unified_framework/processors/reasoning.py:36
ClassRemotePythonExecutor
src/smolagents/remote_executors.py:44
ClassResponseFormat
exps_research/unified_framework/score_answers.py:20
ClassSpeechToTextTool
src/smolagents/default_tools.py:360
ClassTimeoutException
exps_research/unified_framework/math_utils/group.py:16
ClassTool
A base class for the functions used by the agent. Subclass this and implement the `forward` method as well as the following class attributes:
src/smolagents/tools.py:82
ClassToolCallingAgent
This agent uses JSON-like tool calls, using method `model.get_tool_call` to leverage the LLM engine's tool calling capabilities. Args:
src/smolagents/agents.py:1135
ClassToolCollection
Tool collections enable loading a collection of tools in the agent's toolbox. Collections can be loaded from a collection in the Hub or from
src/smolagents/tools.py:758
ClassUserInputTool
src/smolagents/default_tools.py:90
ClassVisitWebpageTool
src/smolagents/default_tools.py:213
ClassWikipediaSearchTool
WikipediaSearchTool searches Wikipedia and returns a summary or full text of the given topic, along with the page URL. Attributes: u
src/smolagents/default_tools.py:264