- createClient(config): {
agent: {
chat: {
(params): Promise<AgentResponse>;
(params): Promise<AgentResponseStreamReader>;
(params): Promise<AgentResponse | AgentResponseStreamReader>;
};
};
api: {
get: (<R>(path) => Promise<R>);
post: (<R, B>(path, body) => Promise<R>);
};
} Returns {
agent: {
chat: {
(params): Promise<AgentResponse>;
(params): Promise<AgentResponseStreamReader>;
(params): Promise<AgentResponse | AgentResponseStreamReader>;
};
};
api: {
get: (<R>(path) => Promise<R>);
post: (<R, B>(path, body) => Promise<R>);
};
}
api: {
get: (<R>(path) => Promise<R>);
post: (<R, B>(path, body) => Promise<R>);
}
get: (<R>(path) => Promise<R>)
- <R>(path): Promise<R>
Returns Promise<R>
post: (<R, B>(path, body) => Promise<R>)
- <R, B>(path, body): Promise<R>
Returns Promise<R>