Class GeneratedText
Inheritance
object
Result
RESTResponse
GeneratedText
Assembly: .dll
Syntax
public class GeneratedText : CompletionResult<string>, IGenerated
Constructors
GeneratedText(string, ToolCall[], Usage)
Declaration
public GeneratedText(string text, ToolCall[] toolCalls, Usage usage = null)
Parameters
Type |
Name |
Description |
string |
text |
|
ToolCall[] |
toolCalls |
|
Usage |
usage |
|
GeneratedText(string, Usage)
Declaration
public GeneratedText(string text, Usage usage)
Parameters
Type |
Name |
Description |
string |
text |
|
Usage |
usage |
|
GeneratedText(string[], ToolCall[], Usage)
Declaration
public GeneratedText(string[] texts, ToolCall[] toolCalls, Usage usage = null)
Parameters
Type |
Name |
Description |
string[] |
texts |
|
ToolCall[] |
toolCalls |
|
Usage |
usage |
|
GeneratedText(string[], Usage)
Declaration
public GeneratedText(string[] texts, Usage usage)
Parameters
Type |
Name |
Description |
string[] |
texts |
|
Usage |
usage |
|
Methods
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()
Transcript(string)
Declaration
public static GeneratedText Transcript(string transcript)
Parameters
Type |
Name |
Description |
string |
transcript |
|
Returns
Operators
implicit operator string(GeneratedText)
Declaration
public static implicit operator string(GeneratedText generatedText)
Parameters
Returns
implicit operator string[](GeneratedText)
Declaration
public static implicit operator string[](GeneratedText generatedText)
Parameters
Returns
Type |
Description |
string[] |
|
implicit operator GeneratedText(string)
Declaration
public static implicit operator GeneratedText(string text)
Parameters
Type |
Name |
Description |
string |
text |
|
Returns
Implements
Extension Methods