Update ai.ts
This commit is contained in:
parent
07953880af
commit
429ee209f3
|
|
@ -89,9 +89,6 @@ const personalityGuardrail: InputGuardrail = {
|
|||
const userContext = context.context as UserContext
|
||||
if (result.finalOutput?.includePersonality) {
|
||||
userContext.personality = highPersonality(userContext)
|
||||
userContext.msg.react("✨").catch((error) => {
|
||||
console.error("💥 Failed to react with ⊕:", error)
|
||||
})
|
||||
} else {
|
||||
userContext.personality = lowPersonality()
|
||||
}
|
||||
|
|
@ -106,7 +103,7 @@ const personalityGuardrail: InputGuardrail = {
|
|||
const reactionAgent = new Agent({
|
||||
name: "Reaction Handler",
|
||||
model: "gpt-4.1-nano",
|
||||
instructions: ({ context }) => buildReactionInstructions(),
|
||||
instructions: ({}) => buildReactionInstructions(),
|
||||
})
|
||||
|
||||
const reactionGuardrail: InputGuardrail = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user