@cognite/cli 1.9.0-alpha.1 → 1.9.0-alpha.3
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/README.md
CHANGED
|
@@ -12,6 +12,10 @@ npx @cognite/cli apps create
|
|
|
12
12
|
|
|
13
13
|
This prompts for your app name, org, project, and cluster, then generates a fully configured React + TypeScript project.
|
|
14
14
|
|
|
15
|
+
## Feature Flags
|
|
16
|
+
|
|
17
|
+
Set environment variable `COGNITE_ALPHA_ENABLE_SESSION_AUTH` to true in order to enable session authentication enabling auth login and logout commands which will let you skip browser login by securely persisting access tokens on your machine.
|
|
18
|
+
|
|
15
19
|
## Authentication
|
|
16
20
|
|
|
17
21
|
New apps created with `npx @cognite/cli apps create` depend on [`@cognite/app-sdk`](https://www.npmjs.com/package/@cognite/app-sdk) — **not `@cognite/cli`** — for auth and host integration. `@cognite/cli` is the CLI used to scaffold, develop, and deploy the app; the generated app itself talks to the Fusion app host via `@cognite/app-sdk`'s Comlink handshake. The template wires this up for you.
|
|
@@ -15,10 +15,18 @@
|
|
|
15
15
|
# configured in agent.yaml. Requires no extra fields, but only
|
|
16
16
|
# makes sense once you've added tools (see README.md's
|
|
17
17
|
# "Adding tools" section).
|
|
18
|
+
# - toolInvocation: checks whether the agent invoked tools with correct
|
|
19
|
+
# arguments and formatting. Complements toolSelection — use
|
|
20
|
+
# both when you need full tool-calling coverage. Requires no
|
|
21
|
+
# extra fields.
|
|
18
22
|
#
|
|
19
23
|
# These are placeholders — edit the inputs, references, and context to match what
|
|
20
24
|
# your agent actually does, then add more cases over time.
|
|
21
25
|
|
|
26
|
+
# To split cases across multiple files as your suite grows, add:
|
|
27
|
+
# include:
|
|
28
|
+
# - cases/maintenance.yaml
|
|
29
|
+
|
|
22
30
|
cases:
|
|
23
31
|
# Single-turn case scored for correctness.
|
|
24
32
|
- id: greeting
|
|
@@ -51,6 +59,7 @@ cases:
|
|
|
51
59
|
- input: "Find assets related to compressors in the knowledge graph."
|
|
52
60
|
scorers:
|
|
53
61
|
- type: toolSelection
|
|
62
|
+
- type: toolInvocation
|
|
54
63
|
|
|
55
64
|
# Multi-turn case: the agent should carry context across turns.
|
|
56
65
|
- id: assets-followup
|
|
@@ -20,12 +20,12 @@ cognite agents publish
|
|
|
20
20
|
| Path | Purpose |
|
|
21
21
|
|------|---------|
|
|
22
22
|
| `agent.yaml` | Agent definition (externalId, tools, model, instructions) |
|
|
23
|
-
| `eval/
|
|
23
|
+
| `eval/eval.yaml` | Example eval cases — run with `cognite agents eval` |
|
|
24
24
|
| `README.md` | This file |
|
|
25
25
|
|
|
26
26
|
## Evaluating the agent
|
|
27
27
|
|
|
28
|
-
`eval/
|
|
28
|
+
`eval/eval.yaml` contains starter test cases (single-turn and multi-turn) that
|
|
29
29
|
grade the agent's responses with an LLM judge. After pushing the agent, run:
|
|
30
30
|
|
|
31
31
|
```bash
|
|
@@ -46,8 +46,8 @@ to: '<%= useCurrentDir ? "" : ((directoryName || name) + "/") %>package.json'
|
|
|
46
46
|
"@types/react": "^18.3.1",
|
|
47
47
|
"@types/react-dom": "^18.3.1",
|
|
48
48
|
"@vitejs/plugin-react": ">=5.1.1 <6.0.0",
|
|
49
|
-
"@vitest/coverage-v8": "4.1.
|
|
50
|
-
"@vitest/ui": "4.1.
|
|
49
|
+
"@vitest/coverage-v8": "4.1.10",
|
|
50
|
+
"@vitest/ui": "4.1.10",
|
|
51
51
|
"autoprefixer": "^10.4.22",
|
|
52
52
|
"eslint": "9.39.4",
|
|
53
53
|
"eslint-plugin-import": "^2.32.0",
|
|
@@ -61,6 +61,6 @@ to: '<%= useCurrentDir ? "" : ((directoryName || name) + "/") %>package.json'
|
|
|
61
61
|
"typescript": "^5.0.0",
|
|
62
62
|
"typescript-eslint": "^8.46.4",
|
|
63
63
|
"vite": ">=7.3.5 <8.0.0",
|
|
64
|
-
"vitest": "4.1.
|
|
64
|
+
"vitest": "4.1.10"
|
|
65
65
|
}
|
|
66
66
|
}
|