// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from '../core/resource'; import * as AgentsAPI from './agents/agents'; import * as ToolSetsAPI from './tool-sets/tool-sets'; import * as ToolsAPI from './tool-sets/tools'; import { APIPromise } from '../core/api-promise'; import { RequestOptions } from '../internal/request-options'; export class Search extends APIResource { /** * Searches for tools or tool sets in the workspace */ searchToolsOrToolSets( query: SearchSearchToolsOrToolSetsParams | null | undefined = {}, options?: RequestOptions, ): APIPromise { return this._client.get('/v1/search/tools_or_tool_sets', { query, ...options }); } } export interface SearchSearchToolsOrToolSetsResponse { agents?: Array; tools?: Array; toolSets?: Array; } export interface SearchSearchToolsOrToolSetsParams { query?: string; } export declare namespace Search { export { type SearchSearchToolsOrToolSetsResponse as SearchSearchToolsOrToolSetsResponse, type SearchSearchToolsOrToolSetsParams as SearchSearchToolsOrToolSetsParams, }; }