Logo
Functions

createAgentDataClient

createAgentDataClient<T>(options): AgentClient<T>

Defined in: packages/cloud/src/beta/agent/client.ts:283

Create a new AsyncAgentDataClient instance. Does it's best to infer an agent url id from environment. Pass in the window url and/or env to infer the agent url id from them.

Type Parameters

T

T = unknown

Parameters

options

The options for the client

apiKey?

string

baseUrl?

string

windowUrl?

string

env?

Record<string, string>

agentUrlId?

string

collection?

string = "default"

Returns

AgentClient<T>

A new AgentClient instance