Skip to content

< Back


LLamaExecutorExtensions

Namespace: LLama.Abstractions

Extension methods to the LLamaExecutorExtensions interface.

1
public static class LLamaExecutorExtensions

Inheritance ObjectLLamaExecutorExtensions
Attributes NullableContextAttribute, NullableAttribute, ExtensionAttribute

Methods

AsChatClient(ILLamaExecutor, IHistoryTransform, ITextStreamTransform)

Gets an instance for the specified ILLamaExecutor.

1
public static IChatClient AsChatClient(ILLamaExecutor executor, IHistoryTransform historyTransform, ITextStreamTransform outputTransform)

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.


< Back