0.0.3 • Published 11 months ago
@fastn-ai/agent-connect v0.0.3
@fastn-ai/agent-connect
Installation
npm install @fastn-ai/agent-connectUsage
import React from 'react';
import AgentConnect from '@fastn-ai/agent-connect';
const Component = () => {
const authToken = useAuth(); // Your authentication logic
return (
<AgentConnect
spaceId="example-space-id"
authToken={authToken}
tenantId="example-tenant-id"
/>
);
};Props
| Prop Name | Type | Description |
|---|---|---|
| spaceId | string | The ID of the space whose agent connect you want to embed. |
| authToken | string | The authentication token used to authenticate your application users. |
| tenantId | string | The ID of the tenant (e.g., user, organization, etc.) (optional). |
| style | object | Custom styles for the container. (optional) |