Skip to content

Commit

Permalink
updating hidden agent information (#6867)
Browse files Browse the repository at this point in the history
Signed-off-by: Dhrubo Saha <dhrubo@amazon.com>
(cherry picked from commit e9ff189)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Apr 3, 2024
1 parent debb0fa commit 2616056
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions _ml-commons-plugin/agents-tools/agents-tools-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,11 @@ Only superadmin users can register a hidden agent. To register a hidden agent, y
curl -k --cert ./kirk.pem --key ./kirk-key.pem -XGET 'https://localhost:9200/.opendistro_security/_search'
```

All agents created by a superadmin user are automatically registered as hidden. To register a hidden agent, send a request to the `_register` endpoint:
All agents created by a superadmin user are automatically registered as hidden. Only the superadmin user can view hidden agent details and delete hidden agents.

Check failure on line 368 in _ml-commons-plugin/agents-tools/agents-tools-tutorial.md

View workflow job for this annotation

GitHub Actions / vale

[vale] _ml-commons-plugin/agents-tools/agents-tools-tutorial.md#L368

[OpenSearch.Spelling] Error: superadmin. If you are referencing a setting, variable, format, function, or repository, surround it with tic marks.
Raw output
{"message": "[OpenSearch.Spelling] Error: superadmin. If you are referencing a setting, variable, format, function, or repository, surround it with tic marks.", "location": {"path": "_ml-commons-plugin/agents-tools/agents-tools-tutorial.md", "range": {"start": {"line": 368, "column": 25}}}, "severity": "ERROR"}

Check failure on line 368 in _ml-commons-plugin/agents-tools/agents-tools-tutorial.md

View workflow job for this annotation

GitHub Actions / vale

[vale] _ml-commons-plugin/agents-tools/agents-tools-tutorial.md#L368

[OpenSearch.Spelling] Error: superadmin. If you are referencing a setting, variable, format, function, or repository, surround it with tic marks.
Raw output
{"message": "[OpenSearch.Spelling] Error: superadmin. If you are referencing a setting, variable, format, function, or repository, surround it with tic marks.", "location": {"path": "_ml-commons-plugin/agents-tools/agents-tools-tutorial.md", "range": {"start": {"line": 368, "column": 90}}}, "severity": "ERROR"}
To register a hidden agent, send a request to the `_register` endpoint:

```bash
curl -k --cert ./kirk.pem --key ./kirk-key.pem -X POST 'https://localhost:9200/_plugins/_ml/models/_register' -H 'Content-Type: application/json' -d '
curl -k --cert ./kirk.pem --key ./kirk-key.pem -X POST 'https://localhost:9200/_plugins/_ml/agents/_register' -H 'Content-Type: application/json' -d '
{
"name": "Test_Agent_For_RAG",
"type": "flow",
Expand Down

0 comments on commit 2616056

Please sign in to comment.