Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a26e00a

Browse files
Add playground one line examples
1 parent 2fc6235 commit a26e00a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import {playground} from "@convostack/playground";
2+
import {AgentEcho} from "@convostack/agent-echo";
3+
4+
playground(new AgentEcho())

‎examples/be-example-express-sqlite/src/server-playground.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dotenv.config();
1717

1818
const port = process.env.PORT || "3000";
1919
const host = process.env.HOST || "localhost";
20-
const proxyUrl = 'http://localhost:8088/client'
20+
const proxyUrl = 'https://playground-proxy.convostack.ai/client'
2121
console.log("Configuring server...");
2222

2323
const corsOptions: CorsOptions = {
@@ -71,7 +71,7 @@ const main = async () => {
7171
}),
7272
agents: new DefaultAgentManager({
7373
"default": {
74-
agent: new AgentHTTPClient(`${proxyUrl}?agentId=${encodeURIComponent('rjKv1v2JHNrwZdWzPP+YOJvsTR11N+7HfItM')}`),
74+
agent: new AgentHTTPClient(`${proxyUrl}?agentId=${'kQtIUHbMpTjaXJH8ZQ7YGM3En9Q3K04ge9g9'}`),
7575
metadata: {
7676
displayName: "Echo Agent",
7777
primer: "This is demo echo agent. Write me a message, and I will send it back to you!"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /