Browse Source

Fixed System Prompt not loaded when mode changed

master
Tillman Staffen 5 days ago
parent
commit
7217f3931c
  1. BIN
      Unreal/Content/Project/BP/BP_Project_Manager.uasset
  2. BIN
      Unreal/Content/SPIE/BP/Mode/DA_Mode_SPIE_QnA.uasset
  3. 8
      Unreal/Plugins/AvatarCore_AI/Source/AvatarCore_AI/Private/AIBaseManager.cpp
  4. 6
      Unreal/Plugins/AvatarCore_AI/Source/AvatarCore_AI/Public/AIBaseManager.h
  5. BIN
      Unreal/Plugins/AvatarCore_Manager/Content/StateManagement/BP_StateManager.uasset

BIN
Unreal/Content/Project/BP/BP_Project_Manager.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Unreal/Content/SPIE/BP/Mode/DA_Mode_SPIE_QnA.uasset (Stored with Git LFS)

Binary file not shown.

8
Unreal/Plugins/AvatarCore_AI/Source/AvatarCore_AI/Private/AIBaseManager.cpp

@ -403,6 +403,14 @@ void UAIBaseManager::OnAIResponse(const FString& Chunk, bool IsFinal)
} }
} }
void UAIBaseManager::AddSystemInstructions(const TArray<FSystemInstruction> SystemInstructions, bool WipeCurrent = true)
{
if (WipeCurrent)
ClearAllSystemInstructios();
CurrentConfig->SystemPrompts.Append(SystemInstructions);
}
void UAIBaseManager::AddSystemInstruction(const FName Name, const FString NewSystemInstruction, bool AddAsFirst = false) void UAIBaseManager::AddSystemInstruction(const FName Name, const FString NewSystemInstruction, bool AddAsFirst = false)
{ {
UAIBaseManager::RemoveSystemInstruction(Name); UAIBaseManager::RemoveSystemInstruction(Name);

6
Unreal/Plugins/AvatarCore_AI/Source/AvatarCore_AI/Public/AIBaseManager.h

@ -136,6 +136,12 @@ public:
UFUNCTION(BlueprintCallable, Category = "AvatarCoreAI|Events") UFUNCTION(BlueprintCallable, Category = "AvatarCoreAI|Events")
virtual void OnAIResponse(const FString& Chunk, bool IsFinal); virtual void OnAIResponse(const FString& Chunk, bool IsFinal);
/**
* Set system instruction by array.
*/
UFUNCTION(BlueprintCallable, Category = "AvatarCoreAI|System Instruction")
void AddSystemInstructions(const TArray<FSystemInstruction> SystemInstructions, bool WipeCurrent);
/** /**
* Add a new system instruction by name. * Add a new system instruction by name.
*/ */

BIN
Unreal/Plugins/AvatarCore_Manager/Content/StateManagement/BP_StateManager.uasset (Stored with Git LFS)

Binary file not shown.
Loading…
Cancel
Save