Skip to content

AIDK API Reference / aidk-google / convertBlocksToGoogleParts

Function: convertBlocksToGoogleParts() ​

ts
function convertBlocksToGoogleParts(blocks: ContentBlock[]): any[];

Defined in: packages/adapters/google/src/google.ts:151

Convert ContentBlocks to Google GenAI parts

Parameters ​

ParameterType
blocksContentBlock[]

Returns ​

any[]

Released under the MIT License.