File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,25 @@ export function createIntegrationTestsSuite(
153153 await client . close ( ) ;
154154 } ) ;
155155
156+ it ( 'should load only specified actors when actors param is provided (no other tools)' , async ( ) => {
157+ const actors = [ 'apify/python-example' ] ;
158+ const client = await createClientFn ( { actors } ) ;
159+ const names = getToolNames ( await client . listTools ( ) ) ;
160+
161+ // Should only load the specified actor, no default tools or categories
162+ expect ( names . length ) . toEqual ( actors . length ) ;
163+ expect ( names ) . toContain ( actorNameToToolName ( actors [ 0 ] ) ) ;
164+
165+ // Should NOT include any default category tools
166+ expect ( names ) . not . toContain ( 'search-actors' ) ;
167+ expect ( names ) . not . toContain ( 'fetch-actor-details' ) ;
168+ expect ( names ) . not . toContain ( 'call-actor' ) ;
169+ expect ( names ) . not . toContain ( 'search-apify-docs' ) ;
170+ expect ( names ) . not . toContain ( 'fetch-apify-docs' ) ;
171+
172+ await client . close ( ) ;
173+ } ) ;
174+
156175 it ( 'should not load any tools when enableAddingActors is true and tools param is empty' , async ( ) => {
157176 const client = await createClientFn ( { enableAddingActors : true , tools : [ ] } ) ;
158177 const names = getToolNames ( await client . listTools ( ) ) ;
You can’t perform that action at this time.
0 commit comments