File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -106,3 +106,5 @@ export class FarcasterActionProvider extends ActionProvider<EvmWalletProvider> {
106106 return network . chainId === String ( base . id ) ;
107107 }
108108}
109+
110+ export const farcasterActionProvider = ( ) => new FarcasterActionProvider ( ) ;
Original file line number Diff line number Diff line change 11import crypto from 'crypto' ;
22import { flaunchActionProvider } from '@coinbase/agentkit' ;
3+ import { farcasterActionProvider } from './tools/farcaster/index.js' ;
34
45/**
56 * Some AgentKit action providers throw if a key isn't set
67 * This function returns a list of action providers that have required env vars
78 */
89export function getActionProvidersWithRequiredEnvVars ( ) {
10+ const providers = [ ] ;
11+
912 if ( process . env . PINATA_JWT ) {
10- return [ flaunchActionProvider ( ) ] ;
13+ providers . push ( flaunchActionProvider ( ) ) ;
14+ }
15+
16+ if ( process . env . NEYNAR_API_KEY ) {
17+ providers . push ( farcasterActionProvider ( ) ) ;
1118 }
1219
13- return [ ] ;
20+ return providers ;
1421}
1522
1623export function generateSessionId ( ) : string {
You can’t perform that action at this time.
0 commit comments