Skip to content

[BUG] Update agent API silently fails when changing agent type #4340

@ohltyler

Description

@ohltyler

If changing an agent type from flow -> conversational or vice versa, it returns 2xx response indicating success. But on subsequent GET calls, it returns the original configuration before the update call, indicating that it must have failed?

Demo cmds:

Create flow agent

POST /_plugins/_ml/agents/_register
{
  "name": "test",
  "type": "flow"
}

Update as conversational agent returns a 200 and "result": "updated" in response body

PUT /_plugins/_ml/agents/<agent-id>
{
  "name": "test",
  "type": "conversational"
}

But get call returns the original flow agent, indicating failure to update.

GET /_plugins/_ml/agents/<agent-id>

Metadata

Metadata

Assignees

Labels

Roadmap:Vector Database/GenAIProject-wide roadmap labelbugSomething isn't workingv3.4.0Issues targeting release v3.4.0

Type

No type

Projects

Status

New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions