create-open-autonomy 2.3.7 → 2.3.8
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-open-autonomy",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.8",
|
|
4
4
|
"description": "The default Open Autonomy starter kit: a complete repository that runs its own Hermes agent against the platform, with the SDK wired in. `bun create open-autonomy <dir>` scaffolds one.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
package/src/kit.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import { existsSync, mkdirSync, readFileSync, readdirSync, rmSync, writeFileSync } from 'node:fs';
|
|
10
10
|
import { dirname, join, relative, resolve } from 'node:path';
|
|
11
11
|
|
|
12
|
-
export const KIT = { name: 'hermes', version: '2.3.
|
|
12
|
+
export const KIT = { name: 'hermes', version: '2.3.8' } as const;
|
|
13
13
|
export const KIT_FILE = '.open-autonomy/kit.json';
|
|
14
14
|
const TEMPLATE = resolve(import.meta.dir, '..', 'template');
|
|
15
15
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"""Open Autonomy's Hermes model wire."""
|
|
2
|
+
|
|
3
|
+
from agent.portal_tags import get_conversation_context
|
|
4
|
+
from providers import register_provider
|
|
5
|
+
from providers.base import ProviderProfile
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class OpenAutonomyProfile(ProviderProfile):
|
|
9
|
+
"""Name the active Hermes session on every request to the platform."""
|
|
10
|
+
|
|
11
|
+
def build_extra_body(
|
|
12
|
+
self, *, session_id: str | None = None, **context
|
|
13
|
+
) -> dict[str, str]:
|
|
14
|
+
active = session_id or get_conversation_context()
|
|
15
|
+
return {"session_id": active} if active else {}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
register_provider(
|
|
19
|
+
OpenAutonomyProfile(
|
|
20
|
+
name="custom",
|
|
21
|
+
display_name="Open Autonomy",
|
|
22
|
+
description="The project's metered Open Autonomy model rail",
|
|
23
|
+
env_vars=("OPEN_AUTONOMY_BASE_URL", "OPEN_AUTONOMY_KEY"),
|
|
24
|
+
)
|
|
25
|
+
)
|