Show / Hide Table of Contents

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.

Inheritance
object
Message
AssistantMessage
Inherited Members
Message.Content
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.GenerativeaiinferenceService.Models
Assembly: OCI.DotNetSDK.Generativeaiinference.dll
Syntax
public class AssistantMessage : Message

Properties

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.

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.

In this article
Back to top