-
Notifications
You must be signed in to change notification settings - Fork 566
feat: get ai agent (api+ui) #14917
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
feat: get ai agent (api+ui) #14917
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
86b58ed
to
55c7dd2
Compare
616ba0d
to
008ff71
Compare
e5c5f68
to
9d82c3a
Compare
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.
9d82c3a
to
150c32c
Compare
008ff71
to
cbba288
Compare
150c32c
to
55c1a7c
Compare
cbba288
to
6654b45
Compare
55c1a7c
to
6350316
Compare
6350316
to
cf76e5d
Compare
6654b45
to
1126f97
Compare
111558f
into
05-21-feat_create_ai_agent_api_ui_
form.setValues({ | ||
name: agent.results.name, | ||
projectUuid: agent.results.projectUuid, | ||
integrations: agent.results.integrations, | ||
tags: agent.results.tags, 8000 | ||
name: agent.name, | ||
projectUuid: agent.projectUuid, | ||
integrations: agent.integrations, | ||
tags: agent.tags, |
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 code accesses agent
properties directly without verifying the object exists first. This could cause runtime errors if the agent data hasn't loaded yet. Consider adding a null check before setting form values:
if (agent) {
form.setValues({
name: agent.name,
projectUuid: agent.projectUuid,
integrations: agent.integrations,
tags: agent.tags,
});
}
This would prevent potential "cannot read property of undefined" errors during the component's rendering cycle.
form.setValues({ | |
name: agent.results.name, | |
projectUuid: agent.results.projectUuid, | |
integrations: agent.results.integrations, | |
tags: agent.results.tags, | |
name: agent.name, | |
projectUuid: agent.projectUuid, | |
integrations: agent.integrations, | |
tags: agent.tags, | |
if (agent) { | |
form.setValues({ | |
name: agent.name, | |
projectUuid: agent.projectUuid, | |
integrations: agent.integrations, | |
tags: agent.tags, | |
}); | |
} | |
Spotted by Diamond
Is this helpful? React 👍 or 👎 to let us know.
* feat: list ai agents * fix: left join * feat: create/update ai agent (api+ui) (#14914) * feat: create ai agent (api+ui) * feat: get ai agent (api+ui) (#14917) * feat: get ai agent (api+ui) * feat: allow deleting agents (#14919) * feat(backend): implement AI agent threads API endpoints (#14918) * feat(backend): agent threads * feat(frontend): agent threads (#14921) --------- Co-authored-by: Irakli Janiashvili <irakli.janiashvili@gmail.com> --------- Co-authored-by: João Viana <joao@lightdash.com> Co-authored-by: Giorgi Bagdavadze <12987425+notgiorgi@users.noreply.github.com>
Closes: #ISSUE_NUMBER
Description:
Implements the "Get Agent" API endpoint and fixes the agent details view in the frontend.
The changes include:
getAgent
controller method that was previously throwing aNotImplementedError
AiAgentModel
to properly handle null integrations withCOALESCE
andFILTER
Reviewer actions