PythonResources
History (v1)
Reference for magick_mind.resources.v1.history.
magick_mind.resources.v1.history
History resource for Magick Mind SDK v1 API.
Provides methods to fetch chat history with pagination.
.. deprecated::
Use :class:MagickspacesResourceV1.get_messages instead.
HistoryResourceV1
class HistoryResourceV1(BaseResource)History resource for fetching chat messages.
.. deprecated::
Use client.v1.magickspaces.get_messages() instead. This resource
exists for backward compatibility and delegates to the correct
/v1/magickspaces/{id}/messages endpoint.
HistoryResourceV1.get_messages
async def get_messages(mindspace_id: str,
*,
cursor: Optional[str] = None,
limit: Optional[int] = None,
order: Optional[str] = None) -> HistoryResponseFetch chat history with cursor-based pagination.
.. deprecated::
Use client.v1.magickspaces.get_messages() instead.
Arguments:
mindspace_id- Mindspace to fetch messages fromcursor- Pagination cursorlimit- Maximum number of messages to returnorder- Sort order —"asc"or"desc"
Returns:
HistoryResponse with messages and pagination cursors