JSPM

@fastn-ai/agent-connect

0.0.3
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 46
    • Score
      100M100P100Q69253F
    • License MIT

    Fastn Agent Connect

    Package Exports

    • @fastn-ai/agent-connect

    Readme

    @fastn-ai/agent-connect

    Installation

    npm install @fastn-ai/agent-connect

    Usage

    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)