IntelligenceX
Class

ChatInput

Namespace IntelligenceX.OpenAI.Chat
Assembly IntelligenceX
Modifiers sealed

Represents structured chat input content.

Inheritance

  • Object
  • ChatInput

Constructors

Methods

public ChatInput AddImagePath(String path) #
Returns: ChatInput

Adds a local image path item to the input.

Parameters

path System.String
Local image path.
public ChatInput AddImageUrl(String url) #
Returns: ChatInput

Adds an image URL item to the input.

Parameters

url System.String
Image URL.
public ChatInput AddRaw(JsonObject item) #
Returns: ChatInput

Adds a raw JSON item to the input.

Parameters

item IntelligenceX.Json.JsonObject
JSON item.
public ChatInput AddText(String text) #
Returns: ChatInput

Adds a text item to the input.

Parameters

text System.String
Text content.
public ChatInput AddToolOutput(String callId, String output) #
Returns: ChatInput

Adds a tool output item to the input.

Parameters

callId System.String
Tool call id.
output System.String
Tool output text.
public static ChatInput FromText(String text) #
Returns: ChatInput

Creates a chat input from a text prompt.

Parameters

text System.String
public static ChatInput FromTextWithImagePath(String text, String path) #
Returns: ChatInput

Creates a chat input from text and a local image path.

Parameters

text System.String
path System.String
public static ChatInput FromTextWithImageUrl(String text, String url) #
Returns: ChatInput

Creates a chat input from text and an image URL.

Parameters

text System.String
url System.String