Skip to content
1 min read · 177 words

Interface: OpenAIResponsesMessageItem ​

Defined in: src/batteries/llm/openai_responses/types.ts:108

An input message item — the leading-content-channel item shape (role: 'user', or the leading developer/system-role item rendered when systemPromptChannel is not 'instructions', or a trailing after-timeline bucket message), plus a peer-identity assistant timeline turn rendered as a plain input message rather than the full output-item shape.

Remarks ​

role: 'assistant' is included — the wire's shorthand EasyInputMessage form accepts it for a plain, non-native-output assistant turn (distinct from OpenAIResponsesOutputMessageItem, which is the full native-output shape used only when replaying the model's OWN prior turn).

Properties ​

PropertyTypeDescriptionDefined in
contentOpenAIResponsesInputContentBlock[]Content blocks.src/batteries/llm/openai_responses/types.ts:114
id?stringOptional item id.src/batteries/llm/openai_responses/types.ts:116
role"user" | "assistant" | "system" | "developer"The message's role.src/batteries/llm/openai_responses/types.ts:112
type?"message"Item discriminator. Optional on input items per the wire (defaults to 'message').src/batteries/llm/openai_responses/types.ts:110