Class AIComponent
Inheritance
object
AIComponent
Assembly: .dll
Syntax
public abstract class AIComponent : MonoBehaviour
Fields
onErrorOccured
Declaration
public UnityEvent_OnErrorOccured onErrorOccured
Field Value
onReceiveUsage
Declaration
public UnityEvent_OnReceiveUsage onReceiveUsage
Field Value
streaming
Declaration
Field Value
Properties
Api
Declaration
public abstract Api Api { get; }
Property Value
DebugMode
Declaration
protected bool DebugMode { get; }
Property Value
IsProcessing
Declaration
public bool IsProcessing { get; }
Property Value
IsSubcomponent
Declaration
public bool IsSubcomponent { get; }
Property Value
Logger
Declaration
protected IDebugLogger Logger { get; }
Property Value
Type |
Description |
IDebugLogger |
|
Methods
Awake()
Declaration
protected virtual void Awake()
CancelAllRequests()
Declaration
public void CancelAllRequests()
CancelLastRequest()
Declaration
public void CancelLastRequest()
Enqueue(Func<UniTask>)
Declaration
protected void Enqueue(Func<UniTask> taskFactory)
Parameters
Type |
Name |
Description |
Func<UniTask> |
taskFactory |
|
IsInvalidFile(IFile)
Declaration
protected bool IsInvalidFile(IFile file)
Parameters
Type |
Name |
Description |
IFile |
file |
|
Returns
IsInvalidFiles(IList<IFile>)
Declaration
protected bool IsInvalidFiles(IList<IFile> files)
Parameters
Type |
Name |
Description |
IList<IFile> |
files |
|
Returns
IsInvalidPrompt(TextPrompt, List<ChatMessage>)
Declaration
protected bool IsInvalidPrompt(TextPrompt textPrompt, List<ChatMessage> messages)
Parameters
Returns
IsInvalidPrompt(string)
Declaration
protected bool IsInvalidPrompt(string promptText)
Parameters
Type |
Name |
Description |
string |
promptText |
|
Returns
IsInvalidPrompt<T>(T)
Declaration
protected bool IsInvalidPrompt<T>(T nonTextPrompt) where T : class
Parameters
Type |
Name |
Description |
T |
nonTextPrompt |
|
Returns
Type Parameters
LogError(string)
Declaration
protected void LogError(string message)
Parameters
Type |
Name |
Description |
string |
message |
|
LogInfo(string)
Declaration
protected void LogInfo(string message)
Parameters
Type |
Name |
Description |
string |
message |
|
LogWarning(string)
Declaration
protected void LogWarning(string message)
Parameters
Type |
Name |
Description |
string |
message |
|
NoRequiredComponent(MonoBehaviour)
Declaration
protected bool NoRequiredComponent(MonoBehaviour component)
Parameters
Type |
Name |
Description |
MonoBehaviour |
component |
|
Returns
OnReceiveUsageData(Usage)
Declaration
protected void OnReceiveUsageData(Usage usage)
Parameters
Type |
Name |
Description |
Usage |
usage |
|
SetParentComponent(AIComponent)
Declaration
public void SetParentComponent(AIComponent parent)
Parameters