@hotmeshio/hotmesh
Version:
Permanent-Memory Workflows & AI Agents
15 lines (14 loc) • 474 B
TypeScript
import { Entity } from './common';
/**
* Returns an entity session handle for interacting with the workflow's JSONB entity storage.
* @returns {Promise<Entity>} An entity session for workflow data.
*
* @example
* ```typescript
* const entity = await workflow.entity();
* await entity.set({ user: { id: 123 } });
* await entity.merge({ user: { name: "John" } });
* const user = await entity.get("user");
* ```
*/
export declare function entity(): Promise<Entity>;