Skip to content

Commit c2965eb

Browse files
committed
Documenting code
Signed-off-by: Francesco Torchia <[email protected]>
1 parent 107d3ca commit c2965eb

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

cypress/globals.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,11 @@ declare global {
233233
checkElementAccessibility(selector: any, description?: string);
234234

235235
/**
236-
* enqueue a request to mock AI Agent response
236+
* Enqueue a request to mock AI Agent response
237+
*
238+
* @param args.content The full content of the AI Agent response to be sent in chunks on next user message.
239+
* @param args.chunkSize (optional) The size of each chunk to be sent. This simulates a streaming response.
240+
* If not provided, the full content will be sent at once.
237241
*/
238242
enqueueAIAgentResponse(args: { content: string, chunkSize?: number }): Chainable;
239243
}

mock-agent/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "mock-agent",
33
"version": "1.0.0",
4+
"description": "A mock AI agent server for testing purposes.",
45
"scripts": {
56
"mock:agent:start": "npx ts-node -P tsconfig.json index.ts"
67
},

0 commit comments

Comments
 (0)