@agent-os-lab/agent-game-sdk 0.1.4 → 0.1.5
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 +12 -1
- package/USAGE.md +9 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -79,7 +79,18 @@ export function Office() {
|
|
|
79
79
|
|
|
80
80
|
`agent-game-sdk/office` is renderer and framework neutral. `agent-game-sdk/office/react` is the React-only entrypoint.
|
|
81
81
|
|
|
82
|
-
The built-in 3D renderer supports semantic room configuration. If `office` is omitted, the SDK renders the default `office + auditorium + gym` layout.
|
|
82
|
+
The built-in 3D renderer supports semantic room configuration. If `office` is omitted, the SDK renders the default `office + auditorium + gym` layout. To choose visible rooms, pass `office.rooms` in the order you want them assembled:
|
|
83
|
+
|
|
84
|
+
```ts
|
|
85
|
+
office: {
|
|
86
|
+
rooms: [
|
|
87
|
+
{ type: "office" },
|
|
88
|
+
{ type: "gym" },
|
|
89
|
+
],
|
|
90
|
+
}
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Built-in room types are `office`, `auditorium`, and `gym`. `capacity` is optional and affects generated agent placement anchors; desks, walls, meeting rooms, gym equipment, windows, and raw coordinates stay internal to the SDK.
|
|
83
94
|
|
|
84
95
|
Browser clients should call an application BFF endpoint. Keep the AgentOS service API key on the server; the SDK server client forwards it to Agent Game Runtime:
|
|
85
96
|
|
package/USAGE.md
CHANGED
|
@@ -166,7 +166,15 @@ view.destroy();
|
|
|
166
166
|
|
|
167
167
|
`renderer: "three"` is the built-in renderer and the default renderer. The container must have a stable size; the React wrapper supplies a default `minHeight`, but framework-neutral callers should size the container in CSS.
|
|
168
168
|
|
|
169
|
-
`office.rooms` configures the 3D office by semantic room type. The built-in room types are `office`, `auditorium`, and `gym`. If `office` is omitted, the SDK renders all three rooms. `
|
|
169
|
+
`office.rooms` configures the 3D office by semantic room type. The built-in room types are `office`, `auditorium`, and `gym`. If `office` is omitted, the SDK renders all three rooms. If `office.rooms` is provided, only those rooms render, in the provided order:
|
|
170
|
+
|
|
171
|
+
```ts
|
|
172
|
+
office: {
|
|
173
|
+
rooms: [{ type: "office" }, { type: "gym" }],
|
|
174
|
+
}
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
The layout packs up to three rooms per row, then starts another row. `capacity` is optional and influences the generated anchors used for agent placement. Do not configure desks, walls, whiteboards, fitness equipment, or raw coordinates from application code; those components remain SDK-managed presets.
|
|
170
178
|
|
|
171
179
|
`refreshAgents` asks Agent Game Runtime to refresh the tenant roster through the existing bootstrap flow. It is intended for UI controls such as a refresh button after an Agent was created or deleted in another surface.
|
|
172
180
|
|