-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat(tools/looker): Looker agent management from MCP #2830
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
drstrangelooker
wants to merge
24
commits into
main
Choose a base branch
from
looker-agent
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
33e0a57
feat(tools/looker): add looker-agent tool
hiracky16 089ad98
fix(tools/looker): address copilot review feedback
hiracky16 afd8cde
fix(tools/looker): update error status codes to 400 for client errors
hiracky16 5df7717
docs(tools/looker): remove duplicate documentation file
hiracky16 bdf0205
fix(tools/looker): Minor fixes to docs and lookeragent.go
drstrangelooker 8905e5b
fix(tools/looker): address feedback for agent tool (#2834)
hiracky16 e2c5ced
Merge remote-tracking branch 'origin/main' into looker-agent
drstrangelooker 900e7c3
fix(tools/looker): support instructions, sources, and code interprete…
hiracky16 1c9944a
fix(tools/looker): address CI failures and enhance agent tool functio…
hiracky16 a93cb6b
Merge branch 'main' into looker-agent
drstrangelooker 877e1b0
docs: fix location of looker-agent in docs
drstrangelooker 7a08114
docs: fix looker-agent.md
drstrangelooker f571e9e
docs: fix looker-agent.md
drstrangelooker 88926dc
Merge remote-tracking branch 'origin/main' into looker-agent
drstrangelooker 12f5de2
docs: remove aliases from looker-agent.md
drstrangelooker 8887deb
Merge branch 'main' into looker-agent
drstrangelooker 8ef8780
Merge branch 'main' into looker-agent
drstrangelooker e1e295f
Merge branch 'main' into looker-agent
drstrangelooker 5b35207
Merge remote-tracking branch 'origin/main' into looker-agent
drstrangelooker b487ff3
feat(tools/looker): refactor into five tools
drstrangelooker a05e0e8
fix(tool/looker): fix tests
drstrangelooker 0f1314a
Merge remote-tracking branch 'origin/main' into looker-agent
drstrangelooker 0d100d2
fix(tools/looker): refine datatypes and tests for create-agent and up…
drstrangelooker 5fd2693
docs(tools/looker): updated docs for the looker agent management tools.
drstrangelooker File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| --- | ||
| title: "looker-create-agent" | ||
| type: docs | ||
| weight: 1 | ||
| description: > | ||
| "looker-create-agent" creates a Looker Conversation Analytics agent. | ||
| --- | ||
|
|
||
| ## About | ||
|
|
||
| The `looker-create-agent` tool allows LLMs to create a Looker Agent using the Looker Go SDK. | ||
|
|
||
| ```json | ||
| { | ||
| "name": "looker-create-agent", | ||
| "parameters": { | ||
| "name": "My Agent", | ||
| "instructions": "You are a helpful assistant.", | ||
| "sources": [{"model": "my_model", "explore": "my_explore"}], | ||
| "code_interpreter": true | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| ## Compatible Sources | ||
|
|
||
| {{< compatible-sources >}} | ||
|
|
||
| ## Example | ||
|
|
||
| ```yaml | ||
| kind: tool | ||
| name: create_agent | ||
| type: looker-create-agent | ||
| source: my-looker-instance | ||
| description: | | ||
| Create a new Looker agent. | ||
| - `name` (string): The name of the agent. | ||
| - `instructions` (string): The instructions (system prompt) for the agent. | ||
| - `sources` (array): Optional. A list of JSON-encoded data sources for the agent (e.g., `[{"model": "my_model", "explore": "my_explore"}]`). | ||
| - `code_interpreter` (boolean): Optional. Enables Code Interpreter for this Agent. | ||
| ``` | ||
|
|
||
| ## Reference | ||
|
|
||
| | **field** | **type** | **required** | **description** | | ||
| |-------------|:--------:|:------------:|----------------------------------------------------| | ||
| | type | string | true | Must be "looker-create-agent". | | ||
| | source | string | true | Name of the Looker source. | | ||
| | description | string | true | Description of the tool that is passed to the LLM. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| --- | ||
| title: "looker-delete-agent" | ||
| type: docs | ||
| weight: 1 | ||
| description: > | ||
| "looker-delete-agent" deletes a Looker Conversation Analytics agent. | ||
| --- | ||
|
|
||
| ## About | ||
|
|
||
| The `looker-delete-agent` tool allows LLMs to delete a Looker Agent using the Looker Go SDK. | ||
|
|
||
| ```json | ||
| { | ||
| "name": "looker-delete-agent", | ||
| "parameters": { | ||
| "agent_id": "123" | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| ## Compatible Sources | ||
|
|
||
| {{< compatible-sources >}} | ||
|
|
||
| ## Example | ||
|
|
||
| To use the `looker-delete-agent` tool, you must define it in your `server.yaml` file. | ||
|
|
||
| ```yaml | ||
| kind: tool | ||
| name: delete_agent | ||
| type: looker-delete-agent | ||
| source: my-looker-instance | ||
| description: | | ||
| Delete a Looker agent. | ||
| - `agent_id` (string): The ID of the agent. | ||
| ``` | ||
|
|
||
| ## Reference | ||
|
|
||
| | **field** | **type** | **required** | **description** | | ||
| |-------------|:--------:|:------------:|----------------------------------------------------| | ||
| | type | string | true | Must be "looker-delete-agent". | | ||
| | source | string | true | Name of the Looker source. | | ||
| | description | string | true | Description of the tool that is passed to the LLM. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| --- | ||
| title: "looker-get-agent" | ||
| type: docs | ||
| weight: 1 | ||
| description: > | ||
| "looker-get-agent" retrieves a Looker Conversation Analytics agent. | ||
| --- | ||
|
|
||
| ## About | ||
|
|
||
| The `looker-get-agent` tool allows LLMs to retrieve a specific Looker Agent by ID using the Looker Go SDK. | ||
|
|
||
| To use the `looker-get-agent` tool, you must define it in your `server.yaml` file. | ||
|
|
||
| ```json | ||
| { | ||
| "name": "looker-get-agent", | ||
| "parameters": { | ||
| "agent_id": "123" | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| ## Compatible Sources | ||
|
|
||
| {{< compatible-sources >}} | ||
|
|
||
| ## Example | ||
|
|
||
| ```yaml | ||
| kind: tool | ||
| name: get_agent | ||
| type: looker-get-agent | ||
| source: my-looker-instance | ||
| description: | | ||
| Retrieve a Looker agent. | ||
| - `agent_id` (string): The ID of the agent. | ||
| ``` | ||
|
|
||
| ## Reference | ||
|
|
||
| | **field** | **type** | **required** | **description** | | ||
| |-------------|:--------:|:------------:|----------------------------------------------------| | ||
| | type | string | true | Must be "looker-get-agent". | | ||
| | source | string | true | Name of the Looker source. | | ||
| | description | string | true | Description of the tool that is passed to the LLM. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| --- | ||
| title: "looker-list-agents" | ||
| type: docs | ||
| weight: 1 | ||
| description: > | ||
| "looker-list-agents" retrieves the list of Looker Conversation Analytics agents. | ||
| --- | ||
|
|
||
| ## About | ||
|
|
||
| The `looker-list-agents` tool allows LLMs to list Looker Agents using the Looker Go SDK. | ||
|
|
||
| ```json | ||
| { | ||
| "name": "looker-list-agents" | ||
| } | ||
| ``` | ||
|
|
||
| ## Compatible Sources | ||
|
|
||
| {{< compatible-sources >}} | ||
|
|
||
| ## Example | ||
|
|
||
| To use the `looker-list-agents` tool, you must define it in your `server.yaml` file. | ||
|
|
||
| ```yaml | ||
| kind: tool | ||
| name: list_agents | ||
| type: looker-list-agents | ||
| source: my-looker-instance | ||
| description: | | ||
| List all Looker agents. | ||
| This tool takes no parameters. | ||
| ``` | ||
|
|
||
| ## Reference | ||
|
|
||
| | **field** | **type** | **required** | **description** | | ||
| |-------------|:--------:|:------------:|----------------------------------------------------| | ||
| | type | string | true | Must be "looker-list-agents". | | ||
| | source | string | true | Name of the Looker source. | | ||
| | description | string | true | Description of the tool that is passed to the LLM. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| --- | ||
| title: "looker-update-agent Tool" | ||
| type: docs | ||
| weight: 1 | ||
| description: > | ||
| "looker-update-agent" updates a Looker Conversation Analytics agent. | ||
| --- | ||
|
|
||
| ## About | ||
|
|
||
| The `looker-update-agent` tool allows LLMs to update an existing Looker Agent using the Looker Go SDK. | ||
|
|
||
| ```json | ||
| { | ||
| "name": "looker-update-agent", | ||
| "parameters": { | ||
| "agent_id": "123", | ||
| "name": "Updated Agent Name" | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| ## Compatible Sources | ||
|
|
||
| {{< compatible-sources >}} | ||
|
|
||
| ## Example | ||
|
|
||
| To use the `looker-update-agent` tool, you must define it in your `server.yaml` file. | ||
|
|
||
| ```yaml | ||
| kind: tool | ||
| name: update_agent | ||
| type: looker-update-agent | ||
| source: my-looker-instance | ||
| description: | | ||
| Update a Looker agent. | ||
| - `agent_id` (string): The ID of the agent. | ||
| - `name` (string): The name of the agent. | ||
| - `instructions` (string): The instructions (system prompt) for the agent. | ||
| - `sources` (array): Optional. A list of JSON-encoded data sources for the agent (e.g., `[{"model": "my_model", "explore": "my_explore"}]`). | ||
| - `code_interpreter` (boolean): Optional. Enables Code Interpreter for this Agent. | ||
| ``` | ||
|
|
||
| ## Reference | ||
|
|
||
| | **field** | **type** | **required** | **description** | | ||
| |-------------|:--------:|:------------:|----------------------------------------------------| | ||
| | type | string | true | Must be "looker-update-agents". | | ||
| | source | string | true | Name of the Looker source. | | ||
| | description | string | true | Description of the tool that is passed to the LLM. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert?