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