-
Notifications
You must be signed in to change notification settings - Fork 112
feat(ambient-ui): Dashboard, agent detail, multi-session sidebar, responsive layout #1647
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
Changes from 33 commits
fa61d95
50ddfb8
e15a4da
2e99338
22928df
bd60f88
ba45b4e
6cd4808
42360b1
f1f20dc
a099a1a
3587de6
b30f43a
58219be
3c81b99
dfb0bfd
3778ff0
21aedfb
538fe3a
8c54a67
aac19f7
af29ce5
301eb74
ff96f07
086847d
afcb937
e3b19f3
7235e88
481f7dc
6b34edd
c06f355
9337ef7
4304c73
f40dd08
0f89be7
98aabf4
9c40c62
3e49062
c022e10
e6b2676
66926bf
bdacbb7
634cb43
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,8 +14,26 @@ func ConvertAgent(agent openapi.Agent) *Agent { | |
| }, | ||
| } | ||
| c.ProjectId = agent.ProjectId | ||
| c.ParentAgentId = agent.ParentAgentId | ||
| c.OwnerUserId = util.NilToEmptyString(agent.OwnerUserId) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Keep nullable agent fields nullable across presenter round-trips.
Also applies to: 25-33, 60-69 🤖 Prompt for AI Agents |
||
| c.Name = agent.Name | ||
| c.DisplayName = agent.DisplayName | ||
| c.Description = agent.Description | ||
| c.Prompt = agent.Prompt | ||
| c.RepoUrl = agent.RepoUrl | ||
| c.WorkflowId = agent.WorkflowId | ||
| if agent.LlmModel != nil { | ||
| c.LlmModel = *agent.LlmModel | ||
| } | ||
| if agent.LlmTemperature != nil { | ||
| c.LlmTemperature = *agent.LlmTemperature | ||
| } | ||
| if agent.LlmMaxTokens != nil { | ||
| c.LlmMaxTokens = *agent.LlmMaxTokens | ||
| } | ||
| c.BotAccountName = agent.BotAccountName | ||
| c.ResourceOverrides = agent.ResourceOverrides | ||
| c.EnvironmentVariables = agent.EnvironmentVariables | ||
| c.Labels = agent.Labels | ||
| c.Annotations = agent.Annotations | ||
|
|
||
|
|
@@ -32,16 +50,28 @@ func ConvertAgent(agent openapi.Agent) *Agent { | |
| func PresentAgent(agent *Agent) openapi.Agent { | ||
| reference := presenters.PresentReference(agent.ID, agent) | ||
| return openapi.Agent{ | ||
| Id: reference.Id, | ||
| Kind: reference.Kind, | ||
| Href: reference.Href, | ||
| CreatedAt: openapi.PtrTime(agent.CreatedAt), | ||
| UpdatedAt: openapi.PtrTime(agent.UpdatedAt), | ||
| ProjectId: agent.ProjectId, | ||
| Name: agent.Name, | ||
| Prompt: agent.Prompt, | ||
| CurrentSessionId: agent.CurrentSessionId, | ||
| Labels: agent.Labels, | ||
| Annotations: agent.Annotations, | ||
| Id: reference.Id, | ||
| Kind: reference.Kind, | ||
| Href: reference.Href, | ||
| CreatedAt: openapi.PtrTime(agent.CreatedAt), | ||
| UpdatedAt: openapi.PtrTime(agent.UpdatedAt), | ||
| ProjectId: agent.ProjectId, | ||
| ParentAgentId: agent.ParentAgentId, | ||
| OwnerUserId: openapi.PtrString(agent.OwnerUserId), | ||
| Name: agent.Name, | ||
| DisplayName: agent.DisplayName, | ||
| Description: agent.Description, | ||
| Prompt: agent.Prompt, | ||
| RepoUrl: agent.RepoUrl, | ||
| WorkflowId: agent.WorkflowId, | ||
| LlmModel: openapi.PtrString(agent.LlmModel), | ||
| LlmTemperature: openapi.PtrFloat64(agent.LlmTemperature), | ||
| LlmMaxTokens: openapi.PtrInt32(agent.LlmMaxTokens), | ||
| BotAccountName: agent.BotAccountName, | ||
| ResourceOverrides: agent.ResourceOverrides, | ||
| EnvironmentVariables: agent.EnvironmentVariables, | ||
| CurrentSessionId: agent.CurrentSessionId, | ||
| Labels: agent.Labels, | ||
| Annotations: agent.Annotations, | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.