Class Attachment
Inheritance
object
Attachment
Assembly: .dll
Syntax
Constructors
Declaration
public Attachment(params ToolCall[] tools)
Parameters
Declaration
public Attachment(string fileId, ToolType targetTool = ToolType.None)
Parameters
Type |
Name |
Description |
string |
fileId |
|
ToolType |
targetTool |
|
Properties
FileId
Declaration
public string FileId { get; }
Property Value
IsFileId
Declaration
public bool IsFileId { get; }
Property Value
Declaration
public bool IsTools { get; }
Property Value
This is only for 'code_interpreter' and 'file_search'.
This is not for 'function'.
Declaration
public ToolCall[] Tools { get; set; }
Property Value
Methods
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
The object to compare with the current object.
|
Returns
Type |
Description |
bool |
true if the specified object is equal to the current object; otherwise, false.
|
Overrides
object.Equals(object)
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
int |
A hash code for the current object.
|
Overrides
object.GetHashCode()
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type |
Description |
string |
A string that represents the current object.
|
Overrides
object.ToString()
Operators
Declaration
public static implicit operator Attachment(ToolCall[] tools)
Parameters
Returns
implicit operator Attachment(string)
Declaration
public static implicit operator Attachment(string fileId)
Parameters
Type |
Name |
Description |
string |
fileId |
|
Returns