Table of Contents

Class Attachment

public class Attachment
Inheritance
object
Attachment

Constructors

Attachment(params ToolWrapper[])

public Attachment(params ToolWrapper[] tools)

Parameters

tools ToolWrapper[]

Attachment(string, string)

public Attachment(string fileId, string targetTool = "none")

Parameters

fileId string
targetTool string

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

ToolWrapper[]

Methods

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

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

tools ToolWrapper[]

Returns

Attachment

implicit operator Attachment(string)

public static implicit operator Attachment(string fileId)

Parameters

fileId string

Returns

Attachment