GenerationContentResponse - Python SDK

GenerationContentResponse method reference

The Python SDK and docs are currently in beta. Report issues on GitHub.

Stored prompt and completion content for a generation

Fields

FieldTypeRequiredDescriptionExample
datacomponents.GenerationContentData✔️Stored prompt and completion content{"input": {"messages": [{"content": "What is the meaning of life?","role": "user"}
]
},
“output”: {"completion": "The meaning of life is a philosophical question...","reasoning": null}
}