Class Attachment
Assembly: Glitch9.AIDevKit.Provider.OpenAI.dll
Syntax
Constructors
|
Edit this page
View Source
Declaration
public Attachment(params ToolEnvelope[] tools)
Parameters
|
Edit this page
View Source
Attachment(string, string)
Declaration
public Attachment(string fileId, string targetTool = "none")
Parameters
Properties
|
Edit this page
View Source
FileId
Declaration
[JsonProperty("file_id")]
public string FileId { get; }
Property Value
|
Edit this page
View Source
IsFileId
Declaration
[JsonIgnore]
public bool IsFileId { get; }
Property Value
|
Edit this page
View Source
Declaration
[JsonIgnore]
public bool IsTools { get; }
Property Value
|
Edit this page
View Source
This is only for 'code_interpreter' and 'file_search'.
This is not for 'function'.
Declaration
[JsonProperty("tools")]
public ToolEnvelope[] Tools { get; set; }
Property Value
Methods
|
Edit this page
View Source
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
|
Edit this page
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
|
Edit this page
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
|
Edit this page
View Source
Declaration
public static implicit operator Attachment(ToolEnvelope[] tools)
Parameters
Returns
|
Edit this page
View Source
implicit operator Attachment(string)
Declaration
public static implicit operator Attachment(string fileId)
Parameters
| Type |
Name |
Description |
| string |
fileId |
|
Returns
Extension Methods