LLamaExecutorExtensions
Namespace: LLama.Abstractions
Extension methods to the LLamaExecutorExtensions interface.
1 |
|
Inheritance Object → LLamaExecutorExtensions
Attributes NullableContextAttribute, NullableAttribute, ExtensionAttribute
Methods
AsChatClient(ILLamaExecutor, IHistoryTransform, ITextStreamTransform)
Gets an instance for the specified ILLamaExecutor.
1 |
|
Parameters
executor
ILLamaExecutor
The executor.
historyTransform
IHistoryTransform
The IHistoryTransform to use to transform an input list messages into a prompt.
outputTransform
ITextStreamTransform
The ITextStreamTransform to use to transform the output into text.
Returns
IChatClient
An instance for the provided ILLamaExecutor.
Exceptions
ArgumentNullException
executor
is null.