Skip to content

Errors

LLMAgentBuilderError

Bases: LLMAgentError

Base error for all LLMAgentBuilder-related exceptions.

Source code in src/llm_agents_from_scratch/errors/agent.py
class LLMAgentBuilderError(LLMAgentError):
    """Base error for all LLMAgentBuilder-related exceptions."""

    pass

LLMAgentError

Bases: LLMAgentsFromScratchError

Base error for all TaskHandler-related exceptions.

Source code in src/llm_agents_from_scratch/errors/agent.py
6
7
8
9
class LLMAgentError(LLMAgentsFromScratchError):
    """Base error for all TaskHandler-related exceptions."""

    pass

MaxStepsReachedError

Bases: LLMAgentError

Raised if the maximum number of steps reached in a run() method call.

Source code in src/llm_agents_from_scratch/errors/agent.py
class MaxStepsReachedError(LLMAgentError):
    """Raised if the maximum number of steps reached in a run() method call."""

    pass

LLMAgentsFromScratchError

Bases: Exception

Base error for all llm-agents-from-scratch exceptions.

Source code in src/llm_agents_from_scratch/errors/core.py
4
5
6
7
class LLMAgentsFromScratchError(Exception):
    """Base error for all llm-agents-from-scratch exceptions."""

    pass

LLMAgentsFromScratchWarning

Bases: Warning

Base warning for all llm-agents-from-scratch warnings.

Source code in src/llm_agents_from_scratch/errors/core.py
class LLMAgentsFromScratchWarning(Warning):
    """Base warning for all llm-agents-from-scratch warnings."""

    pass

MissingExtraError

Bases: LLMAgentsFromScratchError

Raises when an extra is not installed.

Source code in src/llm_agents_from_scratch/errors/core.py
class MissingExtraError(LLMAgentsFromScratchError):
    """Raises when an extra is not installed."""

    pass

MCPError

Bases: LLMAgentsFromScratchError

Base error for all MCP-related exceptions.

Source code in src/llm_agents_from_scratch/errors/mcp.py
6
7
8
9
class MCPError(LLMAgentsFromScratchError):
    """Base error for all MCP-related exceptions."""

    pass

MCPWarning

Bases: LLMAgentsFromScratchWarning

Base warning for all MCP-related warnings.

Source code in src/llm_agents_from_scratch/errors/mcp.py
class MCPWarning(LLMAgentsFromScratchWarning):
    """Base warning for all MCP-related warnings."""

    pass

MissingMCPServerParamsError

Bases: MCPError

Raised when constructing an MCPToolProvider without MCP server params.

Source code in src/llm_agents_from_scratch/errors/mcp.py
class MissingMCPServerParamsError(MCPError):
    """Raised when constructing an MCPToolProvider without MCP server params."""

    pass

TaskHandlerError

Bases: LLMAgentsFromScratchError

Base error for all TaskHandler-related exceptions.

Source code in src/llm_agents_from_scratch/errors/task_handler.py
6
7
8
9
class TaskHandlerError(LLMAgentsFromScratchError):
    """Base error for all TaskHandler-related exceptions."""

    pass

agent

Errors for LLMAgent.

LLMAgentError

Bases: LLMAgentsFromScratchError

Base error for all TaskHandler-related exceptions.

Source code in src/llm_agents_from_scratch/errors/agent.py
6
7
8
9
class LLMAgentError(LLMAgentsFromScratchError):
    """Base error for all TaskHandler-related exceptions."""

    pass

MaxStepsReachedError

Bases: LLMAgentError

Raised if the maximum number of steps reached in a run() method call.

Source code in src/llm_agents_from_scratch/errors/agent.py
class MaxStepsReachedError(LLMAgentError):
    """Raised if the maximum number of steps reached in a run() method call."""

    pass

LLMAgentBuilderError

Bases: LLMAgentError

Base error for all LLMAgentBuilder-related exceptions.

Source code in src/llm_agents_from_scratch/errors/agent.py
class LLMAgentBuilderError(LLMAgentError):
    """Base error for all LLMAgentBuilder-related exceptions."""

    pass

core

Base Error Class for LLM Agents From Scratch.

LLMAgentsFromScratchError

Bases: Exception

Base error for all llm-agents-from-scratch exceptions.

Source code in src/llm_agents_from_scratch/errors/core.py
4
5
6
7
class LLMAgentsFromScratchError(Exception):
    """Base error for all llm-agents-from-scratch exceptions."""

    pass

LLMAgentsFromScratchWarning

Bases: Warning

Base warning for all llm-agents-from-scratch warnings.

Source code in src/llm_agents_from_scratch/errors/core.py
class LLMAgentsFromScratchWarning(Warning):
    """Base warning for all llm-agents-from-scratch warnings."""

    pass

MissingExtraError

Bases: LLMAgentsFromScratchError

Raises when an extra is not installed.

Source code in src/llm_agents_from_scratch/errors/core.py
class MissingExtraError(LLMAgentsFromScratchError):
    """Raises when an extra is not installed."""

    pass

mcp

Errors for MCP Tools.

MCPError

Bases: LLMAgentsFromScratchError

Base error for all MCP-related exceptions.

Source code in src/llm_agents_from_scratch/errors/mcp.py
6
7
8
9
class MCPError(LLMAgentsFromScratchError):
    """Base error for all MCP-related exceptions."""

    pass

MCPWarning

Bases: LLMAgentsFromScratchWarning

Base warning for all MCP-related warnings.

Source code in src/llm_agents_from_scratch/errors/mcp.py
class MCPWarning(LLMAgentsFromScratchWarning):
    """Base warning for all MCP-related warnings."""

    pass

MissingMCPServerParamsError

Bases: MCPError

Raised when constructing an MCPToolProvider without MCP server params.

Source code in src/llm_agents_from_scratch/errors/mcp.py
class MissingMCPServerParamsError(MCPError):
    """Raised when constructing an MCPToolProvider without MCP server params."""

    pass

task_handler

Errors for TaskHandler.

TaskHandlerError

Bases: LLMAgentsFromScratchError

Base error for all TaskHandler-related exceptions.

Source code in src/llm_agents_from_scratch/errors/task_handler.py
6
7
8
9
class TaskHandlerError(LLMAgentsFromScratchError):
    """Base error for all TaskHandler-related exceptions."""

    pass