Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Nardien/agent-distillation
/ types & classes
Types & classes
93 in github.com/Nardien/agent-distillation
⨍
Functions
494
◇
Types & classes
93
↳
Endpoints
1
↓ 47 callers
Class
InterpreterError
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 callers
Class
Message
src/smolagents/memory.py:20
↓ 6 callers
Class
TypeHintParsingException
Exception raised for errors in parsing type hints to generate JSON schemas
src/smolagents/_function_type_hints_utils.py:74
↓ 5 callers
Class
CodeAgent
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 callers
Class
AgentError
Base class for other agent-related exceptions
src/smolagents/utils.py:78
↓ 4 callers
Class
VLLMServerModel
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 callers
Class
AgentParsingError
Exception raised for errors in parsing in the agent
src/smolagents/utils.py:91
↓ 3 callers
Class
ChatMessage
src/smolagents/models.py:86
↓ 3 callers
Class
DuckDuckGoSearchTool
src/smolagents/default_tools.py:101
↓ 3 callers
Class
OpenAIServerModel
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 callers
Class
WikipediaRetrieverTool
src/smolagents/default_tools.py:395
↓ 2 callers
Class
AgentAudio
Audio type returned by the agent.
src/smolagents/agent_types.py:175
↓ 2 callers
Class
AgentGenerationError
Exception raised for errors in generation in the agent
src/smolagents/utils.py:121
↓ 2 callers
Class
AgentToolExecutionError
Exception raised for errors when executing a tool
src/smolagents/utils.py:115
↓ 2 callers
Class
ChatMessageToolCall
src/smolagents/models.py:71
↓ 2 callers
Class
ChatMessageToolCallDefinition
src/smolagents/models.py:56
↓ 2 callers
Class
DocstringParsingException
Exception raised for errors in parsing docstrings to generate JSON schemas
src/smolagents/_function_type_hints_utils.py:78
↓ 2 callers
Class
FinalAnswerTool
src/smolagents/default_tools.py:80
↓ 2 callers
Class
MethodChecker
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 callers
Class
SystemPromptStep
src/smolagents/memory.py:195
↓ 2 callers
Class
ToolCall
src/smolagents/memory.py:26
↓ 2 callers
Class
VLLMModel
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 callers
Class
ActionFinalizeStep
src/smolagents/memory.py:147
↓ 1 callers
Class
ActionStep
src/smolagents/memory.py:52
↓ 1 callers
Class
AgentExecutionError
Exception raised for errors in execution in the agent
src/smolagents/utils.py:97
↓ 1 callers
Class
AgentImage
Image type returned by the agent. Behaves as a PIL.Image.Image.
src/smolagents/agent_types.py:73
↓ 1 callers
Class
AgentLogger
src/smolagents/monitoring.py:87
↓ 1 callers
Class
AgentMaxStepsError
Exception raised for errors in execution in the agent
src/smolagents/utils.py:103
↓ 1 callers
Class
AgentMemory
src/smolagents/memory.py:209
↓ 1 callers
Class
AgentText
Text type returned by the agent. Behaves as a string.
src/smolagents/agent_types.py:61
↓ 1 callers
Class
AgentToolCallError
Exception raised for errors when incorrect arguments are passed to the tool
src/smolagents/utils.py:109
↓ 1 callers
Class
BM25Retriever
search/retriever_server.py:155
↓ 1 callers
Class
BreakException
src/smolagents/local_python_executor.py:158
↓ 1 callers
Class
ClassLevelChecker
src/smolagents/tool_validation.py:161
↓ 1 callers
Class
Config
Minimal config class (simulating your argparse) Replace this with your real arguments or load them dynamically.
search/retriever_server.py:293
↓ 1 callers
Class
ContinueException
src/smolagents/local_python_executor.py:162
↓ 1 callers
Class
CostTracker
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 callers
Class
DataCollatorForCompletionOnlyLMMultiTurn
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 callers
Class
DenseRetriever
search/retriever_server.py:216
↓ 1 callers
Class
DockerExecutor
Executes Python code using Jupyter Kernel Gateway in a Docker container.
src/smolagents/remote_executors.py:159
↓ 1 callers
Class
E2BExecutor
Executes Python code using E2B. Args: additional_imports (`list[str]`): Additional imports to install. logger (`Logger`): Lo
src/smolagents/remote_executors.py:95
↓ 1 callers
Class
Encoder
search/retriever_server.py:73
↓ 1 callers
Class
FinalAnswerException
src/smolagents/local_python_executor.py:1510
↓ 1 callers
Class
FinalAnswerPromptTemplate
Prompt templates for the final answer. Args: pre_messages (`str`): Pre-messages prompt. post_messages (`str`): Post-messages
src/smolagents/agents.py:126
↓ 1 callers
Class
FinalAnswerStep
src/smolagents/memory.py:205
↓ 1 callers
Class
GradioToolWrapper
src/smolagents/tools.py:611
↓ 1 callers
Class
HfApiModel
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 callers
Class
ImportFinder
src/smolagents/utils.py:247
↓ 1 callers
Class
LangChainToolWrapper
src/smolagents/tools.py:631
↓ 1 callers
Class
LiteLLMModel
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 callers
Class
LocalPythonExecutor
src/smolagents/local_python_executor.py:1609
↓ 1 callers
Class
ManagedAgentPromptTemplate
Prompt templates for the managed agent. Args: task (`str`): Task prompt. report (`str`): Report prompt.
src/smolagents/agents.py:113
↓ 1 callers
Class
Monitor
src/smolagents/monitoring.py:36
↓ 1 callers
Class
PlanningPromptTemplate
Prompt templates for the planning step. Args: initial_facts (`str`): Initial facts prompt. initial_plan (`str`): Initial pla
src/smolagents/agents.py:92
↓ 1 callers
Class
PlanningStep
src/smolagents/memory.py:157
↓ 1 callers
Class
PrintContainer
src/smolagents/local_python_executor.py:132
↓ 1 callers
Class
PromptTemplates
Prompt templates for the agent. Args: system_prompt (`str`): System prompt. planning ([`~agents.PlanningPromptTemplate`]): P
src/smolagents/agents.py:139
↓ 1 callers
Class
ReturnException
src/smolagents/local_python_executor.py:166
↓ 1 callers
Class
SimpleTool
src/smolagents/tools.py:880
↓ 1 callers
Class
SpaceToolWrapper
src/smolagents/tools.py:517
↓ 1 callers
Class
StopOnStrings
src/smolagents/models.py:755
↓ 1 callers
Class
TaskStep
src/smolagents/memory.py:181
↓ 1 callers
Class
TransformersModel
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
Class
AgentExperimentProcessor
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
Class
AgentType
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
Class
ApiModel
src/smolagents/models.py:857
Class
AzureOpenAIServerModel
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
Class
BaseRetriever
search/retriever_server.py:134
Class
ExperimentProcessor
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
Class
GoogleSearchTool
src/smolagents/default_tools.py:126
Class
GradioUI
A one-line interface to launch your agent in Gradio
src/smolagents/gradio_ui.py:185
Class
LogLevel
src/smolagents/monitoring.py:77
Class
MLXModel
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
Class
MemoryStep
src/smolagents/memory.py:43
Class
MessageRole
src/smolagents/models.py:128
Class
Model
src/smolagents/models.py:261
Class
MultiStepAgent
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
Class
PipelineTool
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
Class
PreTool
src/smolagents/default_tools.py:29
Class
PythonExecutor
src/smolagents/local_python_executor.py:1605
Class
PythonInterpreterTool
src/smolagents/default_tools.py:38
Class
QueryRequest
search/retriever_server.py:327
Class
ReasoningExperimentProcessor
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
Class
RemotePythonExecutor
src/smolagents/remote_executors.py:44
Class
ResponseFormat
exps_research/unified_framework/score_answers.py:20
Class
SpeechToTextTool
src/smolagents/default_tools.py:360
Class
TimeoutException
exps_research/unified_framework/math_utils/group.py:16
Class
Tool
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
Class
ToolCallingAgent
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
Class
ToolCollection
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
Class
UserInputTool
src/smolagents/default_tools.py:90
Class
VisitWebpageTool
src/smolagents/default_tools.py:213
Class
WikipediaSearchTool
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