-
Notifications
You must be signed in to change notification settings - Fork 1.4k
feat(tool/looker): add conversation CRUD tools #3032
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
hiracky16
wants to merge
18
commits into
googleapis:main
Choose a base branch
from
hiracky16:feat/add-looker-conversation-crud
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
18 commits
Select commit
Hold shift + click to select a range
15364b6
feat(tool/looker): add conversation CRUD tools
hiracky16 deec5fd
Update docs/en/integrations/looker/tools/looker-delete-conversation.md
hiracky16 a70a774
Update docs/en/integrations/looker/tools/looker-get-conversation.md
hiracky16 4aa5dab
Update internal/tools/looker/lookerupdateconversation/lookerupdatecon…
hiracky16 1d2f19f
Update internal/tools/looker/lookergetconversation/lookergetconversat…
hiracky16 38bf0f3
Update internal/tools/looker/lookerlistconversations/lookerlistconver…
hiracky16 825ea4d
Update internal/tools/looker/lookerupdateconversation/lookerupdatecon…
hiracky16 2f295b9
Update internal/tools/looker/lookerupdateconversation/lookerupdatecon…
hiracky16 c157535
Update internal/tools/looker/lookerlistconversations/lookerlistconver…
hiracky16 06bab2e
Update internal/tools/looker/lookercreateconversation/lookercreatecon…
hiracky16 4a6b487
Update docs/en/integrations/looker/tools/looker-update-conversation.md
hiracky16 346f3df
Update docs/en/integrations/looker/tools/looker-list-conversations.md
hiracky16 1eec898
Update internal/tools/looker/lookercreateconversation/lookercreatecon…
hiracky16 008fc5a
Update internal/tools/looker/lookergetconversation/lookergetconversat…
hiracky16 8ca6594
Update internal/tools/looker/lookercreateconversation/lookercreatecon…
hiracky16 2d802b2
Update internal/tools/looker/lookerdeleteconversation/lookerdeletecon…
hiracky16 ce620de
Update docs/en/integrations/looker/tools/looker-create-conversation.md
hiracky16 575fe0e
Update internal/tools/looker/lookerdeleteconversation/lookerdeletecon…
hiracky16 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
49 changes: 49 additions & 0 deletions
49
docs/en/integrations/looker/tools/looker-create-conversation.md
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,49 @@ | ||
| --- | ||
| title: "looker-create-conversation Tool" | ||
| type: docs | ||
| weight: 1 | ||
| description: > | ||
| "looker-create-conversation" tool starts a new conversation session with an AI agent. | ||
|
|
||
| --- | ||
|
|
||
| ## About | ||
|
|
||
| The `looker-create-conversation` tool initiates a new conversation session | ||
| associated with a specific Looker AI agent. | ||
|
|
||
| Creating a conversation is the first step in interacting with an AI agent. | ||
| The tool returns a conversation object, including a `conversation_id` which | ||
| is required for subsequent messages and chat interactions. | ||
|
|
||
| ## Compatible Sources | ||
|
|
||
| {{< compatible-sources >}} | ||
|
|
||
| ## Parameters | ||
|
|
||
| - `agent_id` (required): The unique ID of the AI agent to associate with the conversation. | ||
| - `name` (optional): A descriptive name for the conversation. | ||
|
|
||
| ## Example | ||
|
|
||
| ```yaml | ||
| kind: tool | ||
| name: create_conversation | ||
| type: looker-create-conversation | ||
| source: looker-source | ||
| description: | | ||
| Start a new conversation session with an AI agent. | ||
| Required Parameter: | ||
| - agent_id: The ID of the agent to use. | ||
| Optional Parameter: | ||
| - name: A name to identify this conversation. | ||
| ``` | ||
|
|
||
| ## Reference | ||
|
|
||
| | **field** | **type** | **required** | **description** | | ||
| |-------------|:--------:|:------------:|----------------------------------------------------| | ||
| | type | string | true | Must be "looker-create-conversation" | | ||
| | source | string | true | Name of the Looker source to use. | | ||
| | description | string | true | Description of the tool that is passed to the LLM. | |
44 changes: 44 additions & 0 deletions
44
docs/en/integrations/looker/tools/looker-delete-conversation.md
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,44 @@ | ||
| --- | ||
| title: "looker-delete-conversation Tool" | ||
| type: docs | ||
| weight: 1 | ||
| description: > | ||
| "looker-delete-conversation" tool deletes a conversation session. | ||
|
|
||
| --- | ||
|
|
||
| ## About | ||
|
|
||
| The `looker-delete-conversation` tool removes a conversation session. | ||
|
|
||
| Once deleted, the conversation and its message history are no longer | ||
| accessible via the API. | ||
|
|
||
| ## Compatible Sources | ||
|
|
||
| {{< compatible-sources >}} | ||
|
|
||
| ## Parameters | ||
|
|
||
| - `conversation_id` (required): The unique ID of the conversation to delete. | ||
|
|
||
| ## Example | ||
|
|
||
| ```yaml | ||
| kind: tool | ||
| name: delete_conversation | ||
| type: looker-delete-conversation | ||
| source: looker-source | ||
| description: | | ||
| Delete a conversation and its history. | ||
| Required Parameter: | ||
| - conversation_id: The ID of the conversation. | ||
| ``` | ||
|
|
||
| ## Reference | ||
|
|
||
| | **field** | **type** | **required** | **description** | | ||
| |-------------|:--------:|:------------:|----------------------------------------------------| | ||
| | type | string | true | Must be "looker-delete-conversation" | | ||
| | source | string | true | Name of the Looker source to use. | | ||
| | description | string | true | Description of the tool that is passed to the LLM. | |
45 changes: 45 additions & 0 deletions
45
docs/en/integrations/looker/tools/looker-get-conversation.md
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,45 @@ | ||
| --- | ||
| title: "looker-get-conversation Tool" | ||
| type: docs | ||
| weight: 1 | ||
| description: > | ||
| "looker-get-conversation" tool retrieves detailed information about a specific conversation. | ||
|
|
||
| --- | ||
|
|
||
| ## About | ||
|
|
||
| The `looker-get-conversation` tool retrieves details for a single conversation | ||
| by its ID. | ||
|
|
||
| This is useful for checking the current status or metadata of a | ||
| conversation before interacting with it. | ||
|
|
||
| ## Compatible Sources | ||
|
|
||
| {{< compatible-sources >}} | ||
|
|
||
| ## Parameters | ||
|
|
||
| - `conversation_id` (required): The unique ID of the conversation to retrieve. | ||
|
|
||
| ## Example | ||
|
|
||
| ```yaml | ||
| kind: tool | ||
| name: get_conversation | ||
| type: looker-get-conversation | ||
| source: looker-source | ||
| description: | | ||
| Retrieve detailed information about a single conversation. | ||
| Required Parameter: | ||
| - conversation_id: The ID of the conversation to get. | ||
| ``` | ||
|
|
||
| ## Reference | ||
|
|
||
| | **field** | **type** | **required** | **description** | | ||
| |-------------|:--------:|:------------:|----------------------------------------------------| | ||
| | type | string | true | Must be "looker-get-conversation" | | ||
| | source | string | true | Name of the Looker source to use. | | ||
| | description | string | true | Description of the tool that is passed to the LLM. | |
49 changes: 49 additions & 0 deletions
49
docs/en/integrations/looker/tools/looker-list-conversations.md
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,49 @@ | ||
| --- | ||
| title: "looker-list-conversations Tool" | ||
| type: docs | ||
| weight: 1 | ||
| description: > | ||
| "looker-list-conversations" tool lists existing conversation sessions. | ||
|
|
||
| --- | ||
|
|
||
| ## About | ||
|
|
||
| The `looker-list-conversations` tool retrieves a list of previously | ||
| created conversation sessions. | ||
|
|
||
| Users can optionally filter the results by `agent_id` or use `limit` and | ||
| `offset` for pagination. | ||
|
|
||
| ## Compatible Sources | ||
|
|
||
| {{< compatible-sources >}} | ||
|
|
||
| ## Parameters | ||
|
|
||
| - `agent_id` (optional): Filter conversations by a specific AI agent ID. | ||
| - `limit` (optional): The maximum number of conversations to fetch. Default is 100. | ||
| - `offset` (optional): The number of conversations to skip before fetching. Default is 0. | ||
|
|
||
| ## Example | ||
|
|
||
| ```yaml | ||
| kind: tool | ||
| name: list_conversations | ||
| type: looker-list-conversations | ||
| source: looker-source | ||
| description: | | ||
| Search for existing conversation sessions. | ||
| Optional Parameters: | ||
| - agent_id: Filter by agent ID. | ||
| - limit: Pagination limit. | ||
| - offset: Pagination offset. | ||
| ``` | ||
|
|
||
| ## Reference | ||
|
|
||
| | **field** | **type** | **required** | **description** | | ||
| |-------------|:--------:|:------------:|----------------------------------------------------| | ||
| | type | string | true | Must be "looker-list-conversations" | | ||
| | source | string | true | Name of the Looker source to use. | | ||
| | description | string | true | Description of the tool that is passed to the LLM. | |
46 changes: 46 additions & 0 deletions
46
docs/en/integrations/looker/tools/looker-update-conversation.md
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-update-conversation Tool" | ||
| type: docs | ||
| weight: 1 | ||
| description: > | ||
| "looker-update-conversation" tool updates an existing conversation's attributes. | ||
|
|
||
| --- | ||
|
|
||
| ## About | ||
|
|
||
| The `looker-update-conversation` tool modifies attributes of an | ||
| existing conversation. | ||
|
|
||
| Common uses include renaming a conversation to better reflect its content. | ||
|
|
||
| ## Compatible Sources | ||
|
|
||
| {{< compatible-sources >}} | ||
|
|
||
| ## Parameters | ||
|
|
||
| - `conversation_id` (required): The unique ID of the conversation to update. | ||
| - `name` (required): The new name for the conversation. | ||
|
|
||
| ## Example | ||
|
|
||
| ```yaml | ||
| kind: tool | ||
| name: update_conversation | ||
| type: looker-update-conversation | ||
| source: looker-source | ||
| description: | | ||
| Update an existing conversation's name. | ||
| Required Parameters: | ||
| - conversation_id: The ID of the conversation. | ||
| - name: The new name. | ||
| ``` | ||
|
|
||
| ## Reference | ||
|
|
||
| | **field** | **type** | **required** | **description** | | ||
| |-------------|:--------:|:------------:|----------------------------------------------------| | ||
| | type | string | true | Must be "looker-update-conversation" | | ||
| | source | string | true | Name of the Looker source to use. | | ||
| | description | string | true | Description of the tool that is passed to the LLM. | |
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.
The new imports are not alphabetically sorted within the existing list. For example,
lookercreateagent(line 122) should precedelookercreateconversation(line 117), andlookerdeleteconversationshould be placed afterlookerdeleteagent(line 127). Please reorder the imports to maintain alphabetical consistency throughout the file.