ErrLookup › huggingface/smolagents
huggingface/smolagents
🤗 smolagents: a barebones library for agents that think in code. · Python · 18 source files
Analyzed at 30bb116109 on 2026-08-28. 156 documented errors.
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| Error during jinja template rendering: {type(e).__name__}: { | exception | error | jinja2, prompt-template, smolagents, undefined-variable |
| Cannot specify both 'messages' and 'steps' parameters. Use ' | validation | error | smolagents, deprecated-parameter, api-migration, valueerror |
| The 'system_prompt' property is read-only. Use 'self.prompt_ | exception | error | smolagents, read-only-property, system-prompt, attributeerror |
| Agent name '{name}' must be a valid Python identifier and no | validation | error | smolagents, name-validation, python-identifier, valueerror |
| Each tool or managed_agent should have a unique name! You pa | validation | error | smolagents, duplicate-names, tools, valueerror |
| step_callbacks must be a list or a dict | validation | error | smolagents, step-callbacks, type-validation, valueerror |
| Agent interrupted. | exception | warning | smolagents, interruption, cancellation, agenterror |
| Check {check_function.__name__} failed with error: {e} | exception | error | smolagents, final-answer-checks, validation, agenterror |
| This method should be implemented in child classes | exception | critical | smolagents, abstract-method, notimplementederror, subclassing |
| No '{split_token}' token provided in your output. Your outpu | exception | error | smolagents, react-parsing, codeagent, model-output-format |
| Unknown model class '{model_info['class']}'. Supported model | validation | error | smolagents, serialization, model-registry, deserialization |
| Unknown agent class '{managed_agent_dict['class']}'. Support | validation | error | smolagents, managed-agents, deserialization, registry |
| Loading an agent from Hub requires to acknowledge you trust | validation | error | smolagents, security, huggingface-hub, remote-code |
| Unknown agent class '{managed_agent_class_name}'. Supported | validation | error | smolagents, from-folder, managed-agents, registry |
| `stream_outputs` is set to True, but the model class impleme | validation | error | smolagents, streaming, model-capability, constructor-validation |
| Error while generating output: {e} | exception | error | smolagents, llm-provider, generation-failure, wrapper-exception |
| Error while parsing tool call from model output: {e} | exception | error | smolagents, tool-calling, output-parsing, json |
| If you want to return an answer, please do not perform any o | exception | error | smolagents, tool-calling, final-answer, agent-execution |
| You returned multiple final answers. Please return only one | exception | error | smolagents, final-answer, tool-calling, agent-execution |
| Unknown tool {tool_name}, should be one of: {', '.join(avail | exception | error | smolagents, unknown-tool, tool-calling, hallucinated-name |
| {e} | exception | error | smolagents, tool-arguments, validation, type-error |
| Error executing tool '{tool_name}' with arguments {str(argum | exception | error | smolagents, tool-introspection, schema-generation, type-annotations |
| Error executing tool '{tool_name}' with arguments {str(argum | exception | error | smolagents, tool-execution, runtime-error, wrapper-exception |
| Only 'markdown' is supported for a string argument to `code_ | validation | error | smolagents, codeagent, configuration, input-validation |
| Unsupported executor type: {self.executor_type} | validation | error | smolagents, codeagent, executor-type, configuration |
| Managed agents are not yet supported with remote code execut | exception | error | smolagents, codeagent, managed-agents, remote-executor, unsupported-combination |
| Error in generating model output: {e} | exception | error | smolagents, codeagent, llm-provider, generation-failure |
| Error in code parsing: {e} Make sure to provide correct code | exception | error | smolagents, codeagent, code-parsing, output-format |
| Unsupported model type: {model_type} | validation | error | cli, model-config, input-validation, smolagents |
| Tool {tool_name} is not recognized either as a default tool | validation | error | cli, tools, input-validation, smolagents |
| Unsupported action type: {action_type} | validation | error | cli, agent-config, input-validation, smolagents |
| You must install package `ddgs` to run this tool: for instan | exception | error | dependency, import-error, search-tool, smolagents |
| No results found! Try a less restrictive/shorter query. | exception | warning | search-tool, empty-results, smolagents |
| Missing API key. Make sure you have '{api_key_env_name}' in | validation | error | missing-env-var, api-key, search-tool, smolagents |
| No results found for query: '{query}' with filtering on year | exception | warning | search-tool, empty-results, year-filter, smolagents |
| No results found for query: '{query}'. Use a less restrictiv | exception | warning | search-tool, empty-results, smolagents |
| Unsupported engine: {self.engine} | validation | error | search-tool, input-validation, smolagents |
| Missing API key. Make sure you have 'EXA_API_KEY' in your en | validation | error | missing-env-var, api-key, search-tool, smolagents |
| You must install packages `markdownify` and `requests` to ru | exception | error | dependency, import-error, web-tool, smolagents |
| You must install `wikipedia-api` to run this tool: for insta | exception | error | dependency, import-error, wikipedia, smolagents |
| User-agent is required. Provide a meaningful identifier for | validation | error | wikipedia, input-validation, user-agent, smolagents |
| Invalid extract_format. Choose between 'WIKI' or 'HTML'. | validation | error | wikipedia, input-validation, smolagents |
| Forbidden access to module: {result.__name__} | error_code | error | smolagents, sandbox, authorized-imports, interpreter-error, security |
| Forbidden access to module: {result['__name__']} | error_code | error | smolagents, sandbox, module-dict, security, interpreter-error |
| Forbidden access to function: {function_name} | error_code | critical | smolagents, sandbox, dangerous-functions, security, interpreter-error |
| Code execution exceeded the maximum execution time of {timeo | error_code | error | smolagents, timeout, execution-timeout, sandbox, infinite-loop |
| Object is not iterable | error_code | error | smolagents, iteration, type-error, sandbox, interpreter-error |
| Forbidden access to dunder attribute: {expression.attr} | error_code | error | smolagents, sandbox, dunder, security, attribute-access |
| Unary operation {expression.op.__class__.__name__} is not su | error_code | warning | smolagents, unary-operator, unsupported-operation, interpreter-error |
| Maximum number of {MAX_WHILE_ITERATIONS} iterations in While | error_code | error | smolagents, while-loop, infinite-loop, iteration-limit, sandbox |
| Unsupported AnnAssign target in class body: {type(target).__ | error_code | warning | smolagents, class-definition, annassign, unsupported-operation, interpreter-error |
| Unsupported statement in class body: {stmt.__class__.__name_ | error_code | error | smolagents, class-definition, unsupported-statement, interpreter-error, sandbox |
| AugAssign not supported for {type(target)} targets. | error_code | error | smolagents, augmented-assignment, unsupported-operation, interpreter-error, f-string-bug |
| Cannot add non-list value {value_to_add} to a list. | error_code | error | smolagents, augmented-assignment, list, type-error, interpreter-error |
| Operation {type(expression.op).__name__} is not supported. | error_code | warning | smolagents, augmented-assignment, unsupported-operation, interpreter-error |
| Binary operation {type(binop.op).__name__} is not implemente | error_code | error | smolagents, binary-operator, matmul, not-implemented, sandbox |
| Cannot assign to name '{target.id}': doing this would erase | error_code | error | smolagents, name-collision, static-tools, variable-shadowing, interpreter-error |
| Cannot unpack non-tuple value | error_code | error | smolagents, unpacking, type-error, interpreter-error, sandbox |
| Cannot unpack tuple of wrong size | error_code | error | smolagents, unpacking, arity-mismatch, interpreter-error, sandbox |
| This is not a correct function: {call.func}). | error_code | warning | smolagents, function-call, ast-validation, interpreter-error, unsupported-operation |
| Object {obj} has no attribute {func_name} | error_code | error | smolagents, attribute-error, method-call, none-safety, interpreter-error |
| Forbidden function evaluation: '{call.func.id}' is not among | exception | error | smolagents, name-resolution, unauthorized-call, missing-import, sandbox |
| Cannot unpack non-dict value in **kwargs: {type(starred_dict | exception | error | python-executor, kwargs, type-error, smolagents |
| super() needs at least one argument | exception | error | python-executor, super, oop, smolagents |
| super() argument 1 must be type | exception | error | python-executor, super, type-check, smolagents |
| super() takes at most 2 arguments | exception | error | python-executor, super, argument-count, smolagents |
| Invoking a builtin function that has not been explicitly add | exception | error | python-executor, sandbox, builtin, security, smolagents |
| Forbidden call to dunder function: {func.__name__} | exception | error | python-executor, sandbox, dunder, security, smolagents |
| Could not index {value} with '{index}': {type(e).__name__}: | exception | error | python-executor, subscript, key-error, index-error, smolagents |
| The variable `{name.id}` is not defined. | exception | error | python-executor, name-error, undefined-variable, smolagents |
| Unsupported comparison operator: {op} | exception | error | python-executor, comparison, ast, smolagents |
| Re-raise is not supported without an active exception | exception | error | python-executor, raise, exception-handling, smolagents |
| {msg} | exception | error | python-executor, assert, validation, smolagents |
| Assertion failed: {test_code} | exception | error | python-executor, assert, validation, smolagents |
| Import of {alias.name} is not allowed. Authorized imports ar | exception | error | python-executor, import, sandbox, security, smolagents |
| Module {expression.module} has no attribute {alias.name} | exception | error | python-executor, import, attribute-error, smolagents |
| Import from {expression.module} is not allowed. Authorized i | exception | error | python-executor, import, sandbox, security, smolagents |
| Cannot delete name '{target.id}': name is not defined | exception | error | python-executor, del, name-error, smolagents |
| Cannot delete index/key: {str(e)} | exception | error | python-executor, del, subscript, key-error, smolagents |
| Deletion of {type(target).__name__} targets is not supported | exception | error | python-executor, del, unsupported-syntax, smolagents |
| Reached the max number of operations of {MAX_OPERATIONS}. Ma | exception | error | python-executor, operation-limit, infinite-loop, sandbox, smolagents |
| {expression.__class__.__name__} is not supported. | exception | error | smolagents, python-executor, ast, unsupported-syntax |
| Code parsing failed on line {e.lineno} due to: {type(e).__na | exception | error | smolagents, syntax-error, code-parsing, llm-output |
| Code execution failed at line '{ast.get_source_segment(code, | exception | error | smolagents, runtime-error, code-execution, llm-output |
| Non-installed authorized modules: {', '.join(missing_modules | exception | error | |
| Please install 'mcp' extra to use MCPClient: `pip install 's | exception | error | smolagents, mcp, optional-dependency, module-not-found |
| Unsupported transport: {transport}. Supported transports are | validation | error | smolagents, mcp, transport, config-validation |
| Couldn't retrieve tools from MCP server, run `mcp_client.con | exception | error | smolagents, mcp, lifecycle, not-connected |
| Tool call index is not provided in tool delta: {tool_call_de | exception | error | smolagents, streaming, tool-calls, provider-compatibility |
| Incorrect role {role}, only {MessageRole.roles()} are suppor | exception | error | smolagents, chat-messages, role-validation, message-history |
| Tool call needs to have a key '{tool_name_key}'. Got keys: { | exception | error | smolagents, tool-calls, json-parsing, llm-output |
| Unexpected API response: model '{self.model_id}' returned no | exception | error | litellm, smolagents, empty-response, upstream, llm-provider |
| No content or tool calls in event: {event} | validation | error | litellm, streaming, smolagents, sse, delta-chunk |
| Please install 'litellm' extra to use LiteLLMRouterModel: `p | exception | error | litellm, missing-dependency, pip-extra, installation |
| Received both `token` and `api_key` arguments. Please provid | validation | error | huggingface, inference-api, argument-conflict, auth |
| InferenceClientModel only supports structured outputs with t | validation | error | huggingface, structured-output, response-format, provider-support |
| Please install 'openai' extra to use OpenAIModel: `pip insta | exception | error | openai, missing-dependency, pip-extra, installation |
| Please install 'openai' extra to use AzureOpenAIModel: `pip | exception | error | azure, openai, missing-dependency, pip-extra |
| Please install 'bedrock' extra to use AmazonBedrockServerMod | exception | error | aws, bedrock, boto3, missing-dependency, pip-extra |
| Amazon Bedrock does not support response_format | validation | error | bedrock, aws, response-format, structured-output, unsupported-feature |
| No message content blocks with 'text' key found in response | exception | error | bedrock, response-parsing, keyerror, tool-use, thinking-blocks |
| Cannot safely serialize object of type {type(obj).__name__} | exception | error | serialization, json, pickle, safe-mode, final-answer |
| Pickle data rejected: allow_pickle=False | validation | critical | pickle, deserialization, security, final-answer, allow-pickle |
| Unknown final answer format: expected 'safe:' or 'pickle:' p | validation | error | deserialization, final-answer, format-prefix, version-mismatch |
| Cannot serialize object: {e} | validation | error | serialization, pickle, smolagents |
| Pickle data rejected: allow_pickle=False requires safe-only | exception | error | serialization, pickle, security, smolagents |
| Pickle data rejected: allow_pickle=False requires safe-only | exception | error | serialization, pickle, legacy-migration, security |
| Source code must define a class | exception | error | smolagents, tool-validation, ast, introspection |
| Tool validation failed for {cls.__name__}:\n | validation | error | smolagents, tool-validation, linting |
| You must set an attribute {attr}. | exception | error | smolagents, tool, validation, missing-attribute |
| Attribute {attr} should have type {expected_type.__name__}, | exception | error | smolagents, tool, type-error, validation |
| Attribute output_schema should have type dict, got {type(out | exception | error | smolagents, tool, type-error, json-schema |
| Invalid Tool name '{self.name}': must be a valid Python iden | exception | error | smolagents, tool, identifier, validation |
| Input '{input_name}': when type is a list, all elements must | exception | error | smolagents, tool, inputs, type-error |
| Input '{input_name}': type must be a string or list of strin | exception | error | smolagents, tool, inputs, type-validation |
| Input '{input_name}': types {invalid_types} must be one of { | validation | error | smolagents, tool, authorized-types, validation |
| In tool '{self.name}', 'forward' method parameters were {act | exception | error | smolagents, tool, forward, signature-mismatch |
| Write this method in your subclass of `Tool`. | exception | error | smolagents, tool, not-implemented, abstract-method |
| Cannot save objects created with from_space, from_langchain | exception | error | smolagents, serialization, from-space, wrapper |
| Tool dictionary must contain 'code' key with the tool source | exception | error | smolagents, deserialization, from-dict, missing-key |
| Loading a tool from Hub requires to acknowledge you trust it | exception | error | smolagents, hub, trust-remote-code, security |
| No Tool subclass found in the code. | exception | error | smolagents, from-code, tool-subclass, dynamic-import |
| Could not find specified {api_name=} among available api nam | exception | error | smolagents, gradio, from-space, api-name |
| The space returned this message: | exception | error | smolagents, gradio, space, remote-error |
| Gradio should be installed in order to launch a gradio demo. | exception | error | gradio, optional-dependency, importerror, demo |
| Please install 'mcp' extra to use ToolCollection.from_mcp: ` | exception | error | mcp, optional-dependency, importerror, toolcollection |
| Unsupported transport: {transport}. Supported transports are | exception | error | mcp, transport, validation, valueerror |
| Loading tools from MCP requires you to acknowledge you trust | exception | error | mcp, security, opt-in, valueerror |
| Tool return type not found: make sure your function has a re | exception | error | tool-decorator, type-hints, schema |
| No function definition found in the provided source of {tool | exception | error | tool-decorator, source-inspection, ast |
| Multiple @tool decorators found on function '{func_node.name | exception | error | tool-decorator, ast, duplicate-decorator |
| Please install 'transformers' extra to use a PipelineTool: ` | exception | error | transformers, torch, accelerate, optional-dependency |
| This tool does not implement a default checkpoint, you need | exception | error | pipelinetool, checkpoint, configuration |
| Argument {key} is not in the tool's input schema | exception | error | tool-call, schema-validation, arguments |
| Argument {key} has type '{actual_type}' but should be '{tool | exception | error | smolagents, tool-calling, type-validation, json-schema |
| Argument {key} is required | validation | error | smolagents, tool-calling, missing-argument, validation |
| Argument has type '{type(arguments).__name__}' but should be | exception | error | smolagents, tool-calling, type-validation |
| The model output does not contain any JSON blob. | exception | error | smolagents, llm-output-parsing, json, model-output |
| JSON is invalid: you probably tried to provide multiple tool | exception | error | smolagents, llm-output-parsing, json, tool-calling |
| The JSON blob you used is invalid due to the following error | exception | error | smolagents, llm-output-parsing, json, syntax-error |
| Your code snippet is invalid, because the regex pattern {cod | validation | error | smolagents, code-agent, llm-output-parsing, prompt-format |
| Your code snippet is invalid, because the regex pattern {cod | validation | error | smolagents, code-agent, llm-output-parsing, prompt-format |
| Expected class or callable, got {type(obj)} | validation | error | smolagents, utils, type-guard, introspection |
| No active IPython shell found | exception | error | smolagents, serialization, ipython, inspect |
| No code cells found in IPython session | exception | error | smolagents, serialization, ipython |
| Could not find source code for {obj.__name__} in IPython his | exception | error | smolagents, serialization, ipython, dynamic-objects |
| Match n°{nth_result} not found (only {len(elements)} matches | exception | error | smolagents, selenium, web-browser, dom-search |
| Parameter 'messages' is deprecated and will be removed in ve | console | warning | smolagents, deprecation, future-warning, agents |
| Parameter 'structured_output' was not specified. Currently i | console | warning | smolagents, mcp, deprecation, future-warning |
| The 'model_id' parameter will be required in version 2.0.0. | console | warning | smolagents, transformers, deprecation, model-config |
| The 'model_id' parameter will be required in version 2.0.0. | console | warning | smolagents, anthropic, deprecation, model-config |
| Falling back to insecure pickle serialization. This is a sec | console | warning | smolagents, serialization, pickle, security |
| Deserializing pickle data. This is a security risk if the da | console | warning | smolagents, serialization, pickle, security, deserialization |
| Since `api_name` was not defined, it was automatically set t | console | info | gradio, huggingface-space, tool, smolagents, default-value |
| Parameter 'structured_output' was not specified. Currently i | console | warning | mcp, futurewarning, deprecation, smolagents, structured-output |
| Function '{func_node.name}' has decorators other than @tool. | console | warning | decorator, serialization, remote-execution, smolagents, ast |