Skip to content

Commit

Permalink
updating hidden agent information (#6867) (#6868)
Browse files Browse the repository at this point in the history
(cherry picked from commit e9ff189)

Signed-off-by: Dhrubo Saha <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent debb0fa commit dc491e3
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.
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 dc491e3

Please sign in to comment.