Skip to content

BaseMessage

Sub classes

Name Children Inherits
ComponentResponse
mcp_server_llmling.injection.models
Response model for component operations.

Base classes

Name Children Inherits
BaseSchema
mcp_server_llmling.injection.models
Base schema with shared configuration.

⋔ Inheritance diagram

graph TD
  2215530978["models.BaseMessage"]
  3548594046["models.BaseSchema"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3548594046 --> 2215530978
  3879467795 --> 3548594046
  2751680898 --> 3879467795

🛈 DocStrings

Bases: BaseSchema

Base class for all message types.

Source code in src/mcp_server_llmling/injection/models.py
class BaseMessage(BaseSchema):
    """Base class for all message types."""

    status: StatusType
    """Status of the operation (success/error)."""

    message: str
    """Descriptive message about the operation result."""

message instance-attribute

message: str

Descriptive message about the operation result.

status instance-attribute

status: StatusType

Status of the operation (success/error).

:fa-brands-github: Show source on GitHub