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

EmptySkillBodyError

Bases: SkillValidationError

Raised when a SKILL.md file has no body content after the frontmatter.

Source code in src/llm_agents_from_scratch/errors/skill.py
class EmptySkillBodyError(SkillValidationError):
    """Raised when a SKILL.md file has no body content after the frontmatter."""

    pass

InvalidFrontmatterError

Bases: SkillValidationError

Raised when a SKILL.md file has invalid or unparseable frontmatter.

Source code in src/llm_agents_from_scratch/errors/skill.py
class InvalidFrontmatterError(SkillValidationError):
    """Raised when a SKILL.md file has invalid or unparseable frontmatter."""

    pass

MissingSkillMdError

Bases: SkillValidationError

Raised when a skill directory does not contain a SKILL.md file.

Source code in src/llm_agents_from_scratch/errors/skill.py
class MissingSkillMdError(SkillValidationError):
    """Raised when a skill directory does not contain a SKILL.md file."""

    pass

NameMismatchWarning

Bases: SkillValidationWarning

Emitted when the skill name does not match its parent directory name.

Source code in src/llm_agents_from_scratch/errors/skill.py
class NameMismatchWarning(SkillValidationWarning):
    """Emitted when the skill name does not match its parent directory name."""

    pass

NameTooLongWarning

Bases: SkillValidationWarning

Emitted when the skill name exceeds 64 characters.

Source code in src/llm_agents_from_scratch/errors/skill.py
class NameTooLongWarning(SkillValidationWarning):
    """Emitted when the skill name exceeds 64 characters."""

    pass

SkillsError

Bases: LLMAgentsFromScratchError

Base error for all skill-related exceptions.

Source code in src/llm_agents_from_scratch/errors/skill.py
class SkillsError(LLMAgentsFromScratchError):
    """Base error for all skill-related exceptions."""

    pass

SkillShadowedWarning

Bases: SkillValidationWarning

Emitted when a skill is shadowed and overridden.

Source code in src/llm_agents_from_scratch/errors/skill.py
class SkillShadowedWarning(SkillValidationWarning):
    """Emitted when a skill is shadowed and overridden."""

    pass

SkillSkippedWarning

Bases: SkillsWarning

Emitted when a skill is skipped due to a fatal validation error.

Source code in src/llm_agents_from_scratch/errors/skill.py
class SkillSkippedWarning(SkillsWarning):
    """Emitted when a skill is skipped due to a fatal validation error."""

    pass

SkillsWarning

Bases: LLMAgentsFromScratchWarning

Base warning for all skill-related warnings.

Source code in src/llm_agents_from_scratch/errors/skill.py
6
7
8
9
class SkillsWarning(LLMAgentsFromScratchWarning):
    """Base warning for all skill-related warnings."""

    pass

SkillValidationError

Bases: SkillsError

Raised when validating a skill produces an error.

Source code in src/llm_agents_from_scratch/errors/skill.py
class SkillValidationError(SkillsError):
    """Raised when validating a skill produces an error."""

    pass

SkillValidationWarning

Bases: SkillsWarning

Emitted when a skill has cosmetic issues but is still loaded.

Source code in src/llm_agents_from_scratch/errors/skill.py
class SkillValidationWarning(SkillsWarning):
    """Emitted when a skill has cosmetic issues but is still loaded."""

    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

skill

Errors for Agent Skills.

SkillsWarning

Bases: LLMAgentsFromScratchWarning

Base warning for all skill-related warnings.

Source code in src/llm_agents_from_scratch/errors/skill.py
6
7
8
9
class SkillsWarning(LLMAgentsFromScratchWarning):
    """Base warning for all skill-related warnings."""

    pass

SkillsError

Bases: LLMAgentsFromScratchError

Base error for all skill-related exceptions.

Source code in src/llm_agents_from_scratch/errors/skill.py
class SkillsError(LLMAgentsFromScratchError):
    """Base error for all skill-related exceptions."""

    pass

SkillValidationWarning

Bases: SkillsWarning

Emitted when a skill has cosmetic issues but is still loaded.

Source code in src/llm_agents_from_scratch/errors/skill.py
class SkillValidationWarning(SkillsWarning):
    """Emitted when a skill has cosmetic issues but is still loaded."""

    pass

SkillValidationError

Bases: SkillsError

Raised when validating a skill produces an error.

Source code in src/llm_agents_from_scratch/errors/skill.py
class SkillValidationError(SkillsError):
    """Raised when validating a skill produces an error."""

    pass

SkillSkippedWarning

Bases: SkillsWarning

Emitted when a skill is skipped due to a fatal validation error.

Source code in src/llm_agents_from_scratch/errors/skill.py
class SkillSkippedWarning(SkillsWarning):
    """Emitted when a skill is skipped due to a fatal validation error."""

    pass

MissingSkillMdError

Bases: SkillValidationError

Raised when a skill directory does not contain a SKILL.md file.

Source code in src/llm_agents_from_scratch/errors/skill.py
class MissingSkillMdError(SkillValidationError):
    """Raised when a skill directory does not contain a SKILL.md file."""

    pass

InvalidFrontmatterError

Bases: SkillValidationError

Raised when a SKILL.md file has invalid or unparseable frontmatter.

Source code in src/llm_agents_from_scratch/errors/skill.py
class InvalidFrontmatterError(SkillValidationError):
    """Raised when a SKILL.md file has invalid or unparseable frontmatter."""

    pass

EmptySkillBodyError

Bases: SkillValidationError

Raised when a SKILL.md file has no body content after the frontmatter.

Source code in src/llm_agents_from_scratch/errors/skill.py
class EmptySkillBodyError(SkillValidationError):
    """Raised when a SKILL.md file has no body content after the frontmatter."""

    pass

NameMismatchWarning

Bases: SkillValidationWarning

Emitted when the skill name does not match its parent directory name.

Source code in src/llm_agents_from_scratch/errors/skill.py
class NameMismatchWarning(SkillValidationWarning):
    """Emitted when the skill name does not match its parent directory name."""

    pass

NameTooLongWarning

Bases: SkillValidationWarning

Emitted when the skill name exceeds 64 characters.

Source code in src/llm_agents_from_scratch/errors/skill.py
class NameTooLongWarning(SkillValidationWarning):
    """Emitted when the skill name exceeds 64 characters."""

    pass

SkillShadowedWarning

Bases: SkillValidationWarning

Emitted when a skill is shadowed and overridden.

Source code in src/llm_agents_from_scratch/errors/skill.py
class SkillShadowedWarning(SkillValidationWarning):
    """Emitted when a skill is shadowed and overridden."""

    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