Class Attachment
public class Attachment
- Inheritance
-
objectAttachment
Constructors
Attachment(params ToolWrapper[])
public Attachment(params ToolWrapper[] tools)
Parameters
toolsToolWrapper[]
Attachment(string, string)
public Attachment(string fileId, string targetTool = "none")
Parameters
fileIdstringtargetToolstring
Properties
FileId
public string FileId { get; }
Property Value
- string
IsFileId
public bool IsFileId { get; }
Property Value
- bool
IsTools
public bool IsTools { get; }
Property Value
- bool
Tools
This is only for 'code_interpreter' and 'file_search'. This is not for 'function'.
public ToolWrapper[] Tools { get; set; }
Property Value
Methods
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Operators
implicit operator Attachment(ToolWrapper[])
public static implicit operator Attachment(ToolWrapper[] tools)
Parameters
toolsToolWrapper[]
Returns
implicit operator Attachment(string)
public static implicit operator Attachment(string fileId)
Parameters
fileIdstring