adk-typescript
Version:
TypeScript port of Google's Agent Development Kit (ADK)
12 lines (11 loc) • 422 B
TypeScript
import { Content } from './types';
/**
* Encodes content for storage in the database
* Converts binary data to base64 strings for JSON serialization
*/
export declare function encodeContent(content: Content): Record<string, any>;
/**
* Decodes content from the database
* Converts base64 strings back to binary data
*/
export declare function decodeContent(content: Record<string, any> | null | undefined): Content;