MCPcopy Create free account
hub / github.com/Forethought-Technologies/AutoChain / BaseMessage

Class BaseMessage

autochain/agent/message.py:15–24  ·  view source on GitHub ↗

Message object.

Source from the content-addressed store, hash-verified

13
14
15class BaseMessage(BaseModel):
16 """Message object."""
17
18 content: str
19 additional_kwargs: dict = Field(default_factory=dict)
20
21 @property
22 @abstractmethod
23 def type(self) -> str:
24 """Type of the message, used for serialization."""
25
26
27class UserMessage(BaseMessage):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected