Skip to content

Commit 44e86f2

Browse files
committed
Fix parameter types in createSession and resumeSession method signatures
1 parent 145c827 commit 44e86f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nodejs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Stop the server and close all sessions. Returns a list of any errors encountered
9494

9595
Force stop the CLI server without graceful cleanup. Use when `stop()` takes too long.
9696

97-
##### `createSession(config?: SessionConfig): Promise<CopilotSession>`
97+
##### `createSession(config: SessionConfig): Promise<CopilotSession>`
9898

9999
Create a new conversation session.
100100

@@ -111,7 +111,7 @@ Create a new conversation session.
111111
- `onUserInputRequest?: UserInputHandler` - Handler for user input requests from the agent. Enables the `ask_user` tool. See [User Input Requests](#user-input-requests) section.
112112
- `hooks?: SessionHooks` - Hook handlers for session lifecycle events. See [Session Hooks](#session-hooks) section.
113113

114-
##### `resumeSession(sessionId: string, config?: ResumeSessionConfig): Promise<CopilotSession>`
114+
##### `resumeSession(sessionId: string, config: ResumeSessionConfig): Promise<CopilotSession>`
115115

116116
Resume an existing session. Returns the session with `workspacePath` populated if infinite sessions were enabled.
117117

0 commit comments

Comments
 (0)