Skip to content

delegated-tools: batch resolveTools seam to avoid N queries on tools/list #88

Description

@drewstone

From gtm-agent#250: handleDelegatedToolCall calls resolveTool(workspaceId, name) once per allowed tool to build tools/list. gtm's resolveTool runs a DB query each call, so a K-tool list = K queries (was 1 in the bespoke handler). A resolveTools(workspaceId, names[]) batch seam (with resolveTool as the single-name convenience) closes the regression.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions