You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: klite.embd
+11-24Lines changed: 11 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -25880,7 +25880,7 @@ else
25880
25880
},
25881
25881
{
25882
25882
"name": "overwrite_world_information",
25883
-
"description": "Overwrites an entry describing an entity. The information is stored under a unique identifier. This information is included when certain keywords are mentioned.",
25883
+
"description": "Overwrites an entry describing an entity. The information is stored under a unique identifier. This information is included when certain keywords are mentioned. Limit this to key information and overwrite unique identifiers if needed.",
25884
25884
"args": {
25885
25885
"uniqueIdentifier": "<unique identifier (such as a characters name, location etc)>",
25886
25886
"text": "<descriptive text which by itself provides all needed information to define the entity>",
@@ -26450,28 +26450,6 @@ json_schema = `RESPOND WITH ONLY VALID JSON CONFORMING TO THE FOLLOWING SCHEMA:
26450
26450
}
26451
26451
} `;
26452
26452
26453
-
/**
26454
-
* Old action prompt
26455
-
let actionPrompt = () => {
26456
-
return `${!!localsettings.instruct_sysprompt ? `${localsettings.instruct_sysprompt}\n\n` : ""}You are a decision making action AI that evaluates thoughts and takes concise, purposeful actions which lead to a response to the user.
26457
-
26458
-
${constraints}
26459
-
26460
-
${getCommandsAsText()}
26461
-
26462
-
${agentResources}
26463
-
26464
-
${agentEvaluation}
26465
-
26466
-
${json_schema}`
26467
-
}**/
26468
-
26469
-
let actionPrompt = (commands = getEnabledCommands()) => {
26470
-
return `${!!localsettings.instruct_sysprompt ? `${localsettings.instruct_sysprompt}` : `You are a decision making action AI that evaluates thoughts and takes concise, purposeful actions which lead to a response to the user.`}
26471
-
26472
-
${getCommandsAsText(commands)}`
26473
-
}
26474
-
26475
26453
let checkFinalThoughtsPrompt = `Action: {"command":{"name":"thought","args":{"message":"I must make sure that I respond to the user with \"send_message\""}}}`
26476
26454
</script>
26477
26455
<style>
@@ -26759,6 +26737,10 @@ let checkFinalThoughtsPrompt = `Action: {"command":{"name":"thought","args":{"me
26759
26737
let getFinalAgentPrompt = (commands, currentOrderOfActions, objectiveForCurrentAction, initialPrompt) => {
26760
26738
let state = getDocumentFromTextDB('State')
26761
26739
let prompt = []
26740
+
26741
+
let sysPrompt = !!localsettings.instruct_sysprompt ? `${localsettings.instruct_sysprompt}` : `You are a decision making action AI that evaluates thoughts and takes concise, purposeful actions which lead to a response to the user.`
26742
+
prompt.push(`System prompt: ${sysPrompt}`)
26743
+
26762
26744
if (!!initialPrompt)
26763
26745
{
26764
26746
prompt.push(`Last user instruction: ${initialPrompt}`)
@@ -26771,12 +26753,17 @@ let checkFinalThoughtsPrompt = `Action: {"command":{"name":"thought","args":{"me
0 commit comments