steamship.agents.memory package#
Submodules#
steamship.agents.memory.chathistory module#
- class steamship.agents.memory.chathistory.ChatHistory(file: File)[source]#
Bases:
object
A ChatHistory is a wrapper of a File ideal for ongoing interactions between a user and a virtual assistant.
- append_agent_message(text: Optional[str] = None, tags: Optional[List[Tag]] = None, content: Optional[Union[str, bytes]] = None, url: Optional[str] = None, mime_type: Optional[MimeTypes] = None) Block [source]#
Append a new block to this with content provided by the agent, i.e., results from the assistant.
- append_system_message(text: Optional[str] = None, tags: Optional[List[Tag]] = None, content: Optional[Union[str, bytes]] = None, url: Optional[str] = None, mime_type: Optional[MimeTypes] = None) Block [source]#
Append a new block to this with content provided by the system, i.e., instructions to the assistant.
- append_user_message(text: Optional[str] = None, tags: Optional[List[Tag]] = None, content: Optional[Union[str, bytes]] = None, url: Optional[str] = None, mime_type: Optional[MimeTypes] = None) Block [source]#
Append a new block to this with content provided by the end-user.
Module contents#
- class steamship.agents.memory.ChatHistory(file: File)[source]#
Bases:
object
A ChatHistory is a wrapper of a File ideal for ongoing interactions between a user and a virtual assistant.
- append_agent_message(text: Optional[str] = None, tags: Optional[List[Tag]] = None, content: Optional[Union[str, bytes]] = None, url: Optional[str] = None, mime_type: Optional[MimeTypes] = None) Block [source]#
Append a new block to this with content provided by the agent, i.e., results from the assistant.
- append_system_message(text: Optional[str] = None, tags: Optional[List[Tag]] = None, content: Optional[Union[str, bytes]] = None, url: Optional[str] = None, mime_type: Optional[MimeTypes] = None) Block [source]#
Append a new block to this with content provided by the system, i.e., instructions to the assistant.
- append_user_message(text: Optional[str] = None, tags: Optional[List[Tag]] = None, content: Optional[Union[str, bytes]] = None, url: Optional[str] = None, mime_type: Optional[MimeTypes] = None) Block [source]#
Append a new block to this with content provided by the end-user.