googleapis / googleapis/nodejs-agentplatform
how can i train gemini to generate structured data like json?
Open
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
Assessment
This issue has not been assessed yet.