Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.

Conversation

@joshsny
Copy link
Collaborator

@joshsny joshsny commented Aug 15, 2025

Add a tool to be able to query existing insights, as there was currently no way to do this.

It will allow insight data to impact the decisions made by an LLM during agent workflows.

@joshsny joshsny requested review from Copilot and jonathanlab August 15, 2025 14:12
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a new insight-query tool that allows LLMs to execute queries on existing insights and retrieve their results/data. This fills a gap where insights could be created and managed but their actual data couldn't be queried for decision-making in agent workflows.

  • Adds a new queryInsightTool that takes an insight ID and returns both insight metadata and query results
  • Extends the API client with a query method to execute insight queries
  • Includes comprehensive integration tests for the new functionality

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
typescript/src/tools/insights/query.ts Implements the core insight query tool with handler logic
typescript/src/tools/index.ts Registers the new query insight tool
typescript/src/schema/tool-inputs.ts Defines the schema for insight query parameters
typescript/src/api/client.ts Adds API client methods and schema updates for querying insights
typescript/tests/tools/insights.integration.test.ts Adds integration tests for the query functionality
schema/tool-inputs.json JSON schema definition with additional optional parameters
schema/tool-definitions.json Tool definition for the insight-query tool
typescript/src/tools/dashboards/get.ts Unrelated change that appears incomplete

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Collaborator

@jonathanlab jonathanlab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is incredibly cool, good one!

@joshsny joshsny merged commit c27bdf7 into main Aug 15, 2025
9 checks passed
@joshsny joshsny deleted the query-insight-tool branch August 15, 2025 14:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants