@microsoft/m365agentsplayground 0.2.24 → 0.2.25-alpha.20260427-8ab7f58.0
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 +34 -0
- package/dist/client/asset-manifest.json +2 -2
- package/dist/client/index.html +1 -1
- package/dist/client/static/js/{main.a264756d.js → main.b75bbe05.js} +2 -2
- package/dist/cmds/agents-simulator.d.ts +11 -0
- package/dist/cmds/index.d.ts +8 -0
- package/dist/cmds/start.d.ts +11 -0
- package/dist/constants.d.ts +20 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +3 -3
- package/dist/index.js.LICENSE.txt +8 -1
- package/dist/server/config.json +2 -2
- package/dist/server/package.json +4 -2
- package/dist/server.d.ts +2 -0
- package/dist/utils.d.ts +2 -0
- package/dist/yargsCommand.d.ts +28 -0
- package/package.json +4 -3
- /package/dist/client/static/js/{main.a264756d.js.LICENSE.txt → main.b75bbe05.js.LICENSE.txt} +0 -0
package/README.md
CHANGED
|
@@ -20,6 +20,40 @@ Microsoft 365 Agents Playground enables developers to:
|
|
|
20
20
|
- **Reliable and Trustable**: You can trust the Microsoft 365 Agents playground because the application UX ([Adaptive Cards](https://learn.microsoft.com/microsoftteams/platform/task-modules-and-cards/cards/cards-reference#adaptive-card)) is built on top of the same rendering technology as in different channels.
|
|
21
21
|
- **Integration with Existing Applications**: The Microsoft 365 Agents playground can be integrated with existing applications that are built with [Agent SDK](https://learn.microsoft.com/en-us/microsoft-365/agents-sdk/).
|
|
22
22
|
- **Easy Inspections**: You can inspect the interactions between your application and the Microsoft 365 Agents playground as well as the request and response payloads coming in and out of your application.
|
|
23
|
+
- **Automated Bot Testing**: Use the built-in `agents-simulator` command to run multi-turn conversations against your bot programmatically — ideal for CI pipelines and LLM-based evaluation.
|
|
24
|
+
|
|
25
|
+
## CLI Commands
|
|
26
|
+
|
|
27
|
+
### `agentsplayground start`
|
|
28
|
+
|
|
29
|
+
Start the Microsoft 365 Agents Playground UI for interactive testing.
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
npx @microsoft/m365agentsplayground start
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### `agentsplayground agents-simulator`
|
|
36
|
+
|
|
37
|
+
Start the agents-simulator HTTP server for automated/headless bot testing. Exposes a `POST /run-conversation` endpoint that drives multi-turn conversations against your bot.
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
npx @microsoft/m365agentsplayground agents-simulator --port 9000
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Then POST test scenarios:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
curl -X POST http://localhost:9000/run-conversation \
|
|
47
|
+
-H "Content-Type: application/json" \
|
|
48
|
+
-d '{
|
|
49
|
+
"config": { "botEndpoint": "http://localhost:3978/api/messages" },
|
|
50
|
+
"scenario": "smoke-test",
|
|
51
|
+
"input": { "turns": [{ "test_id": "t1", "prompt": "Hello" }] }
|
|
52
|
+
}'
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
See the [agents-simulator README](../agents-simulator/README.md) for the full API reference.
|
|
56
|
+
|
|
23
57
|
|
|
24
58
|
## Limitations
|
|
25
59
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"files": {
|
|
3
3
|
"main.css": "/static/css/main.1e331206.css",
|
|
4
|
-
"main.js": "/static/js/main.
|
|
4
|
+
"main.js": "/static/js/main.b75bbe05.js",
|
|
5
5
|
"static/media/CascadiaCode.woff2": "/static/media/CascadiaCode.61442455812b2cee49c4.woff2",
|
|
6
6
|
"index.html": "/index.html",
|
|
7
7
|
"static/media/index.cjs": "/static/media/index.f6d03137e8c9dd0de04c.cjs"
|
|
8
8
|
},
|
|
9
9
|
"entrypoints": [
|
|
10
10
|
"static/css/main.1e331206.css",
|
|
11
|
-
"static/js/main.
|
|
11
|
+
"static/js/main.b75bbe05.js"
|
|
12
12
|
]
|
|
13
13
|
}
|
package/dist/client/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>Microsoft 365 Agents Playground</title><script defer="defer" src="/static/js/main.
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>Microsoft 365 Agents Playground</title><script defer="defer" src="/static/js/main.b75bbe05.js"></script><link href="/static/css/main.1e331206.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|