The actors are the OpenAI Response model which chats with the user.
More...
The actors are the OpenAI Response model which chats with the user.
Definition at line 15 of file Actor.cs.
◆ Actor()
◆ AddSystemMesssage()
| void EchoTrio.Actor.AddSystemMesssage |
( |
string |
message | ) |
|
|
inline |
Append a system message to the actor's conversation history.
- Parameters
-
| message | The message to append. |
Definition at line 98 of file Actor.cs.
◆ AddUserMessage()
| void EchoTrio.Actor.AddUserMessage |
( |
string |
message | ) |
|
|
inline |
Append a user message to the actor's conversation history.
- Parameters
-
| message | The message to append. |
Definition at line 104 of file Actor.cs.
◆ BuildSetEmotionTool()
| OpenAI.Function EchoTrio.Actor.BuildSetEmotionTool |
( |
| ) |
|
|
inlineprivate |
◆ ContainsAudioTags()
| bool EchoTrio.Actor.ContainsAudioTags |
( |
string |
text | ) |
|
|
inlineprivate |
◆ GetAudioClipAsync()
| async Task< AudioClip > EchoTrio.Actor.GetAudioClipAsync |
( |
string |
text, |
|
|
CancellationToken |
cancellationToken |
|
) |
| |
|
inlineprivate |
◆ GetResponse()
| async Task< Actor.Response > EchoTrio.Actor.GetResponse |
( |
CancellationToken |
cancellationToken | ) |
|
|
inline |
Request the actor to generate a response based on the conversation history.
- Parameters
-
| cancellationToken | Cancellation token used to cancel any async actions when the program shuts down. |
- Returns
- The actor's response.
Definition at line 127 of file Actor.cs.
◆ InsertResponse()
| async Task< Actor.Response > EchoTrio.Actor.InsertResponse |
( |
string |
message, |
|
|
Emotion |
emotion, |
|
|
CancellationToken |
cancellationToken |
|
) |
| |
|
inline |
Append an assistant message to the actor's conversation history. This means that we can make the actor think it said something, even if it did not. Used for scripted speech, where we force the actor to say something the designer wrote.
- Parameters
-
| message | The message to append. |
| emotion | The emotion of the message. |
| cancellationToken | Cancellation token used to cancel any async actions when the program shuts down. |
- Returns
- The actor's response.
Definition at line 114 of file Actor.cs.
◆ ParseEmotion()
| string EchoTrio.Actor.ParseEmotion |
( |
string |
args | ) |
|
|
inlineprivate |
◆ conversation
| List<IResponseItem> EchoTrio.Actor.conversation = new List<IResponseItem>() |
|
private |
The conversation history from this actor's point of view.
Definition at line 73 of file Actor.cs.
◆ elevenLabsApi
| ElevenLabsClient EchoTrio.Actor.elevenLabsApi = null |
|
private |
◆ elevenLabsSettings
◆ openAIApi
| OpenAIClient EchoTrio.Actor.openAIApi = null |
|
private |
◆ openAISettings
◆ EnableDebug
| bool EchoTrio.Actor.EnableDebug = false |
|
getset |
◆ Persona
| string EchoTrio.Actor.Persona |
|
getprivate set |
The documentation for this class was generated from the following file: