API reference

LlmAgent Class

Extends MonoBehaviour
Thin chat agent that delegates to an IChatTask provider.

Fields

onImageCaptured : Texture2DEvent
Signature
Texture2DEvent onImageCaptured
onPromptSent : StringEvent
Signature
StringEvent onPromptSent
onResponseReceived : StringEvent
Signature
StringEvent onResponseReceived

Properties

CanCapture : bool
[Get]
Signature
bool CanCapture
ProviderSupportsVision : bool
[Get]
Signature
bool ProviderSupportsVision
SystemPrompt : string
[Get][Set]
Gets or sets the system prompt that provides context/instructions to the LLM.
This is prepended to all user messages.
Signature
string SystemPrompt

Methods

SendPromptAsync ( userText )
Capture passthrough if possible, otherwise send text only.
Signature
async Task SendPromptAsync(string userText)
Parameters
userText: string
Returns
async Task
SendPromptAsync ( userText , image )
Send with a provided Texture2D (e.g., Inspector texture / fake camera). Pass null to send text only.
Signature
Task SendPromptAsync(string userText, Texture2D image)
Parameters
userText: string
image: Texture2D
Returns
Task
SendPromptWithImagesAsync ( userText , images )
Send with pre-built image inputs (URLs and/or bytes).
Signature
Task SendPromptWithImagesAsync(string userText, List< ImageInput > images)
Parameters
userText: string
images: List< ImageInput >
Returns
Task