Skip to content

Commit ed84578

Browse files
updates readme and dockerfile for framework flag
1 parent d21d275 commit ed84578

7 files changed

Lines changed: 11 additions & 10 deletions

File tree

services/domyn_agent_example/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ COPY agent_expose.py .
1515
# All required values come from environment variables (see .env.example)
1616
CMD ["sh", "-c", \
1717
"domyn expose agent_expose:agent \
18+
--framework domyn \
1819
--channel-id $DOMYN_CHANNEL_ID \
1920
--space-id $DOMYN_SPACE_ID \
2021
--base-url $DOMYN_BASE_URL"]

services/domyn_agent_example/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ Connect to the platform:
7777
```bash
7878
source .env
7979
domyn expose agent_expose:agent \
80+
--framework domyn \
8081
--channel-id $DOMYN_CHANNEL_ID \
8182
--space-id $DOMYN_SPACE_ID \
8283
--base-url $DOMYN_BASE_URL
@@ -200,7 +201,7 @@ Platform orchestrator
200201
201202
│ AGENT_START (via WebSocket relay)
202203
203-
domyn expose agent_expose:agent
204+
domyn expose agent_expose:agent --framework domyn
204205
205206
│ Receives AGENT_START, extracts task text
206207
│ Runs domyn Runner with the Agent
@@ -213,6 +214,6 @@ Agent ReAct loop
213214
└── RESPONSE → streamed back to platform
214215
```
215216

216-
The `domyn expose` command auto-detects that `agent_expose:agent` is a domyn `Agent` instance and uses the `DomynAgentRuntime` — no input mapper or LangChain callbacks required.
217+
The `--framework domyn` flag tells `domyn expose` to use the `DomynAgentRuntime` — no input mapper or LangChain callbacks required.
217218

218219
Multi-turn conversations are supported: the agent maintains conversation history per `conversation_id` across calls.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
DOMYN_API_KEY=your_api_key_here
2-
CHANNEL_ID=your_channel_id_here
3-
SPACE_ID=your_space_id_here
4-
PLATFORM_BASE_URL=analytics-az.crystal.io
2+
DOMYN_CHANNEL_ID=your_channel_id_here
3+
DOMYN_SPACE_ID=your_space_id_here
4+
DOMYN_BASE_URL=analytics-az.crystal.io
55
VLLM_API_KEY=your_vllm_api_key_here
66
VLLM_BASE_URL=https://gateway-dev.llm.crystal.ai/v1
77
VLLM_MODEL=Qwen/Qwen3.5-27B

services/langgraph_agent_example/Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,4 @@ COPY agent_expose.py .
1717

1818
# Connect to the Domyn platform via WebSocket relay
1919
# All required values come from environment variables (see .env.example)
20-
CMD ["sh", "-c", \
21-
"domyn expose agent_expose:graph \
22-
--channel-id $CHANNEL_ID \
23-
--space-id $SPACE_ID \
24-
--base-url $PLATFORM_BASE_URL"]
20+
CMD ["domyn", "expose", "agent_expose:graph", "--framework", "langgraph"]

services/langgraph_agent_example/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ Connect to the platform:
7777
```bash
7878
source .env
7979
domyn expose agent_expose:graph \
80+
--framework langgraph \
8081
--channel-id $DOMYN_CHANNEL_ID \
8182
--space-id $DOMYN_SPACE_ID \
8283
--base-url $DOMYN_BASE_URL

services/langgraph_deterministic_graph_example/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ COPY loan_assessment_graph.py .
1717
# All required values come from environment variables (see .env.example)
1818
CMD ["sh", "-c", \
1919
"domyn expose loan_assessment_graph:graph \
20+
--framework langgraph \
2021
--channel-id $CHANNEL_ID \
2122
--space-id $SPACE_ID \
2223
--base-url $PLATFORM_BASE_URL"]

services/langgraph_deterministic_graph_example/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ Connect to the platform:
7474
```bash
7575
source .env
7676
domyn expose loan_assessment_graph:graph \
77+
--framework langgraph \
7778
--channel-id $DOMYN_CHANNEL_ID \
7879
--space-id $DOMYN_SPACE_ID \
7980
--base-url $DOMYN_BASE_URL

0 commit comments

Comments
 (0)