Class ModelExtensions
Inheritance
object
ModelExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DotnetPrompt.Abstractions.LLM
Assembly: DotnetPrompt.Abstractions.dll
Syntax
public static class ModelExtensions
Methods
| Improve this Doc View SourcePromptAsync(ILargeLanguageModel, string, List<string>)
Run the LLM on the given prompt and input.
Declaration
public static Task<string> PromptAsync(this ILargeLanguageModel model, string prompt, List<string> stop = null)
Parameters
Type | Name | Description |
---|---|---|
ILargeLanguageModel | model | |
string | prompt | |
List<string> | stop |
Returns
Type | Description |
---|---|
Task<string> |