I understand how Structured Outputs work for when the model’s function call needs to be structured. But what about structured input?
For example, I have a function that returns an excerpt of a markdown document along with some metadata:
[
{
"sha1": "document-and-metadata-hash",
"content": "a long string with markdown formatting, likely containing \n newlines\n, and code blocks",
"meta": {
"url": "https://example.com/souce-url",
"section_heading": "Original heading of excerpt"
}
}
]
How should I present this data to the model in my function response? Should I keep it in JSON format, use pseudo-xml tags, or just plain text (and let the model figure it out)?
I only see examples in the documentation of simple data types of a single number or string of text.