Class AssistantMessage
Represents a single instance of assistant message.
Note: When responding to a tool call, set content to null (not \"\").
This ensures the model correctly processes tool call messages in multi-step interactions.
Inherited Members
Namespace: Oci.GenerativeaiinferenceService.Models
Assembly: OCI.DotNetSDK.Generativeaiinference.dll
Syntax
public class AssistantMessage : MessageProperties
Annotations
Declaration
[JsonProperty(PropertyName = "annotations")]
public List<Annotation> Annotations { get; set; }Property Value
| Type | Description | 
|---|---|
| List<Annotation> | List of annotations generated by the model, including inline citations from web search results. | 
Name
Declaration
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }Property Value
| Type | Description | 
|---|---|
| string | An optional name for the participant. Provides the model information to differentiate between participants of the same role. | 
Refusal
Declaration
[JsonProperty(PropertyName = "refusal")]
public string Refusal { get; set; }Property Value
| Type | Description | 
|---|---|
| string | The refusal message by the assistant. | 
ToolCalls
Declaration
[JsonProperty(PropertyName = "toolCalls")]
public List<ToolCall> ToolCalls { get; set; }Property Value
| Type | Description | 
|---|---|
| List<ToolCall> | The tool calls generated by the model, such as function calls. |