@aj-archipelago/cortex 1.4.3 → 1.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/entityConstants.js
CHANGED
|
@@ -26,6 +26,7 @@ Your responses should be in {{language}} unless the user has expressed another p
|
|
|
26
26
|
- You have an extensive toolkit. Each time you call tool(s) you will get the result(s), evaluate, decide what's next, and chain as many steps as needed.
|
|
27
27
|
- Your tools work most efficiently when called in parallel so if you know you will need multiple tool calls and you know what the parameters are, call them in parallel.
|
|
28
28
|
- Always honor user requests to use specific tools.
|
|
29
|
+
- For data processing requests (e.g. tell me how many articles were published in the last 30 days), or deep file analysis (chart the trends in this spreadsheet, etc.), you should call your code execution tool to perform the task - especially if the task requires a lot of data, deep analysis, complex filtering, or precision calculations. For simpler things (e.g. make me a chart of the population of the world in the last 100 years) you might find it faster to search for the data and then just call your charting tool to generate the chart.
|
|
29
30
|
- You must always search if you are being asked questions about current events, news, fact-checking, or information requiring citation.
|
|
30
31
|
- Do not make up information - if information cannot be confirmed with rigorous logic or reliable sources, do not include it in your response.
|
|
31
32
|
- Start searches broad and consult multiple sources, running all searches in parallel to save time.
|
|
@@ -123,6 +124,8 @@ Privacy is critical. If asked to forget or delete something, always comply affir
|
|
|
123
124
|
|
|
124
125
|
AI_STYLE_OPENAI: "oai-gpt5-chat",
|
|
125
126
|
AI_STYLE_OPENAI_RESEARCH: "oai-gpt5",
|
|
127
|
+
AI_STYLE_OPENAI_LEGACY: "oai-gpt41",
|
|
128
|
+
AI_STYLE_OPENAI_LEGACY_RESEARCH: "oai-o3",
|
|
126
129
|
AI_STYLE_ANTHROPIC: "claude-4-sonnet-vertex",
|
|
127
130
|
AI_STYLE_ANTHROPIC_RESEARCH: "claude-41-opus-vertex",
|
|
128
131
|
AI_STYLE_XAI: "xai-grok-4-fast-reasoning",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aj-archipelago/cortex",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.4",
|
|
4
4
|
"description": "Cortex is a GraphQL API for AI. It provides a simple, extensible interface for using AI services from OpenAI, Azure and others.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"repository": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"type": "module",
|
|
34
34
|
"homepage": "https://github.com/aj-archipelago/cortex#readme",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@aj-archipelago/merval": "^1.0.
|
|
36
|
+
"@aj-archipelago/merval": "^1.0.3",
|
|
37
37
|
"@aj-archipelago/subvibe": "^1.0.12",
|
|
38
38
|
"@apollo/server": "^4.7.3",
|
|
39
39
|
"@apollo/server-plugin-response-cache": "^4.1.2",
|
|
@@ -333,12 +333,13 @@ export default {
|
|
|
333
333
|
];
|
|
334
334
|
|
|
335
335
|
// set the style model if applicable
|
|
336
|
-
const { aiStyle, AI_STYLE_ANTHROPIC, AI_STYLE_OPENAI, AI_STYLE_ANTHROPIC_RESEARCH, AI_STYLE_OPENAI_RESEARCH, AI_STYLE_XAI, AI_STYLE_XAI_RESEARCH, AI_STYLE_GOOGLE, AI_STYLE_GOOGLE_RESEARCH } = args;
|
|
336
|
+
const { aiStyle, AI_STYLE_ANTHROPIC, AI_STYLE_OPENAI, AI_STYLE_ANTHROPIC_RESEARCH, AI_STYLE_OPENAI_RESEARCH, AI_STYLE_OPENAI_LEGACY, AI_STYLE_OPENAI_LEGACY_RESEARCH, AI_STYLE_XAI, AI_STYLE_XAI_RESEARCH, AI_STYLE_GOOGLE, AI_STYLE_GOOGLE_RESEARCH } = args;
|
|
337
337
|
|
|
338
338
|
// Create a mapping of AI styles to their corresponding models
|
|
339
339
|
const styleModelMap = {
|
|
340
340
|
"Anthropic": { normal: AI_STYLE_ANTHROPIC, research: AI_STYLE_ANTHROPIC_RESEARCH },
|
|
341
341
|
"OpenAI": { normal: AI_STYLE_OPENAI, research: AI_STYLE_OPENAI_RESEARCH },
|
|
342
|
+
"OpenAI_Legacy": { normal: AI_STYLE_OPENAI_LEGACY, research: AI_STYLE_OPENAI_LEGACY_RESEARCH },
|
|
342
343
|
"XAI": { normal: AI_STYLE_XAI, research: AI_STYLE_XAI_RESEARCH },
|
|
343
344
|
"Google": { normal: AI_STYLE_GOOGLE, research: AI_STYLE_GOOGLE_RESEARCH }
|
|
344
345
|
};
|
|
@@ -48,7 +48,7 @@ export default {
|
|
|
48
48
|
icon: "🤖",
|
|
49
49
|
function: {
|
|
50
50
|
name: "CodeExecution",
|
|
51
|
-
description: "This tool allows you to engage an agent to write and execute code to perform a task on your behalf. Use when explicitly asked to run or execute code, or when a coding agent is needed to perform specific tasks - examples include data analysis, file manipulation, or other tasks that require code execution. With this tool you can also access internal databases and query them directly. This will start a background task and return - you will not receive the response immediately.",
|
|
51
|
+
description: "This tool allows you to asynchronously engage an agent to write and execute code to perform a task on your behalf. Use when explicitly asked to run or execute code, or when a coding agent is needed to perform specific tasks - examples include data analysis, file manipulation, or other tasks that require code execution. With this tool you can read and write files and also access internal databases and query them directly. This will start a background task and return - you will not receive the response immediately.",
|
|
52
52
|
parameters: {
|
|
53
53
|
type: "object",
|
|
54
54
|
properties: {
|
|
@@ -66,7 +66,7 @@ export default {
|
|
|
66
66
|
},
|
|
67
67
|
codingTaskKeywords: {
|
|
68
68
|
type: "string",
|
|
69
|
-
description: "Keywords for Azure Cognitive Search to help the coding agent find relevant code snippets"
|
|
69
|
+
description: "Keywords for the coding agent's internal Azure Cognitive Search index to help the coding agent find relevant code snippets"
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
required: ["codingTask", "userMessage", "codingTaskKeywords"]
|