googleapis / googleapis/nodejs-agentplatform

how can i train gemini to generate structured data like json?

Open
#446 1 comment 0 reactions 0 assignees View on GitHub
api: aiplatform priority: p3 type: question
Dominant language
TypeScript
Stars
182
Forks
69
Avg merge
1d 8h
Merged PRs (30d)
10

Description

I want Gemini to generate structured data, such as [{name:'allen',year:2020,month:12,day:11},{name:'tracy',year:2024,month:2,day:23}], instead of generating descriptive text like ‘Allen was born on December 1, 2020, and Tracy was born on February 23, 2024.’ How can I achieve this?

This way, I won’t need to concatenate data from the string anymore.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.