Class Attachment
public sealed class Attachment
- Inheritance
-
Attachment
- Inherited Members
Constructors
Attachment()
public Attachment()
Attachment(string, Tool)
Constructor.
public Attachment(string fileId, Tool tool)
Parameters
Attachment(string, IEnumerable<Tool>)
Constructor.
public Attachment(string fileId, IEnumerable<Tool> tools)
Parameters
fileId
stringThe ID of the file to attach to the message.
tools
IEnumerable<Tool>The tools to add this file to.
Properties
FileId
The ID of the file to attach to the message.
[JsonInclude]
[JsonPropertyName("file_id")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string FileId { get; }
Property Value
Tools
The tools to add this file to.
[JsonInclude]
[JsonPropertyName("tools")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public IReadOnlyList<Tool> Tools { get; }