(input: {
query: string;
namespace?: string;
limit: number;
})
| 394 | }; |
| 395 | |
| 396 | export const buildSearchToolsCode = (input: { |
| 397 | query: string; |
| 398 | namespace?: string; |
| 399 | limit: number; |
| 400 | }): string => { |
| 401 | const payload: Record<string, unknown> = { |
| 402 | query: input.query, |
| 403 | limit: input.limit, |
| 404 | }; |
| 405 | if (input.namespace && input.namespace.trim().length > 0) { |
| 406 | payload.namespace = input.namespace; |
| 407 | } |
| 408 | return `return await tools.search(${JSON.stringify(payload)});`; |
| 409 | }; |
| 410 | |
| 411 | export const buildListIntegrationsCode = (input: { query?: string; limit: number }): string => { |
| 412 | const payload: Record<string, unknown> = { |
no outgoing calls
no test coverage detected