Skip to content

[onechat] Update create ES|QL tool sample in README#227883

Merged
dennis-tismenko merged 1 commit intomainfrom
onechat/update-esql-sample-request
Jul 14, 2025
Merged

[onechat] Update create ES|QL tool sample in README#227883
dennis-tismenko merged 1 commit intomainfrom
onechat/update-esql-sample-request

Conversation

@dennis-tismenko
Copy link
Copy Markdown
Contributor

Summary

Updating the OneChat README to incorporate the latest API changes in #227452 for the example of creating an ES|QL tool. It now reads:

POST kbn://api/chat/tools
{
  "id": "case_by_id",
  "description": "Find a custom case by id.",
  "configuration": {
    "query": "FROM my_cases | WHERE case_id == ?case_id | KEEP title, description | LIMIT 1",
    "params": {
      "case_id": {
        "type": "keyword",
        "description": "The id of the case to retrieve"
      }
    }
  },
  "type": "esql",
  "tags": ["salesforce"]
}

@dennis-tismenko dennis-tismenko requested a review from a team as a code owner July 14, 2025 16:57
@dennis-tismenko dennis-tismenko added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting v9.2.0 labels Jul 14, 2025
Copy link
Copy Markdown
Contributor

@meghanmurphy1 meghanmurphy1 left a comment

Choose a reason for hiding this comment

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

Oh good catch! Thanks!

@dennis-tismenko dennis-tismenko merged commit 4501a33 into main Jul 14, 2025
19 checks passed
@dennis-tismenko dennis-tismenko deleted the onechat/update-esql-sample-request branch July 14, 2025 17:08
Bluefinger pushed a commit to Bluefinger/kibana that referenced this pull request Jul 22, 2025
## Summary

Updating the OneChat README to incorporate the latest API changes in
elastic#227452 for the example of creating an ES|QL tool. It now reads:

```json
POST kbn://api/chat/tools
{
  "id": "case_by_id",
  "description": "Find a custom case by id.",
  "configuration": {
    "query": "FROM my_cases | WHERE case_id == ?case_id | KEEP title, description | LIMIT 1",
    "params": {
      "case_id": {
        "type": "keyword",
        "description": "The id of the case to retrieve"
      }
    }
  },
  "type": "esql",
  "tags": ["salesforce"]
}
kertal pushed a commit to kertal/kibana that referenced this pull request Jul 25, 2025
## Summary

Updating the OneChat README to incorporate the latest API changes in
elastic#227452 for the example of creating an ES|QL tool. It now reads:

```json
POST kbn://api/chat/tools
{
  "id": "case_by_id",
  "description": "Find a custom case by id.",
  "configuration": {
    "query": "FROM my_cases | WHERE case_id == ?case_id | KEEP title, description | LIMIT 1",
    "params": {
      "case_id": {
        "type": "keyword",
        "description": "The id of the case to retrieve"
      }
    }
  },
  "type": "esql",
  "tags": ["salesforce"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:skip Skip the PR/issue when compiling release notes v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants