Skip to main content
Options to createAgentClient.
  • Pass baseUrl to connect to an already-running server (remote transport).
  • Omit baseUrl to spawn a local cognitio serve via the existing SDK.

Properties

baseUrl?

Absolute URL of a running cognitio server. If set, no server is spawned.

control?

Control-channel dispatcher readiness and reconnect tuning.

directory?

Working directory sent to the server on session creation.

headers?

Headers sent on every remote HTTP/SSE request, including Authorization. Requires baseUrl.

spawn?

Override spawn behavior. Not used when baseUrl is provided.

workspaceId?

Optional workspace id passed through to the server.