Package io.agentscope.core.agui.model
Interface InputContent
- All Known Implementing Classes:
AudioInputContent,DocumentInputContent,ImageInputContent,TextInputContent,VideoInputContent
public sealed interface InputContent
permits TextInputContent, ImageInputContent, AudioInputContent, VideoInputContent, DocumentInputContent
Sealed interface representing a typed content part in the AG-UI protocol.
This corresponds to the AG-UI protocol's InputContent union type,
covering text, image, audio, video, and document inputs.
JSON polymorphism is handled via the type discriminator field,
consistent with the AG-UI protocol specification:
"text"→TextInputContent"image"→ImageInputContent"audio"→AudioInputContent"video"→VideoInputContent"document"→DocumentInputContent
- Since:
- 2026-08-01
- Author:
- shanhongyu
- See Also: