Skip to content

Conversation

@UriZafrir
Copy link
Contributor

@UriZafrir UriZafrir commented Aug 5, 2025

this is to solve this error when trying to go to /api/models

2025-08-05T21:57:36Z    DEBUG   http    Request started {"method": "GET", "path": "/api/models", "remote_addr": "10.244.0.7:51442", "user_id": "admin@kagent.dev"}
2025-08-05T21:57:36Z    INFO    http.model-handler      Listing supported models        {"method": "GET", "path": "/api/models", "remote_addr": "10.244.0.7:51442", "user_id": "admin@kagent.dev", "operation": "list-supported-models"}
2025-08-05T21:57:36Z    INFO    http    Not implemented {"method": "GET", "path": "/api/models", "remote_addr": "10.244.0.7:51442", "user_id": "admin@kagent.dev"}
2025-08-05T21:57:36Z    INFO    http    Request completed       {"method": "GET", "path": "/api/models", "remote_addr": "10.244.0.7:51442", "user_id": "admin@kagent.dev", "status": 501, "duration": "69.831µs"}
image image

@UriZafrir UriZafrir force-pushed the feat-implement-backend-for-models-ui branch from 0fed037 to 4e9f345 Compare August 5, 2025 23:18
@UriZafrir UriZafrir requested a review from peterj as a code owner August 6, 2025 00:07
@UriZafrir UriZafrir force-pushed the feat-implement-backend-for-models-ui branch from f7a092a to 07a8ff3 Compare August 6, 2025 00:26
Copy link
Contributor

@EItanya EItanya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left comment on the go code, will leave the rest to @peterj

Comment on lines 10 to 11
// ModelInfo represents information about a model
type ModelInfo struct {
Name string `json:"name"`
FunctionCalling bool `json:"function_calling"`
}

// ProviderModels represents a map of provider names to their supported models
type ProviderModels map[string][]ModelInfo

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use the types defined in pkg/client/model.go? That way the client code can stay up to date

// TODO: Implement this
// Create a map of provider names to their supported models
// The keys need to match what the UI expects (camelCase for API keys)
supportedModels := ProviderModels{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a great start, but I do think we need a better "authoritative" list of these models. We should still merge something like this, but just want to put that out there.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated as requested.

urizaf-work and others added 12 commits August 7, 2025 16:05
Signed-off-by: urizaf-work <uri.zafrir@kaltura.com>
Signed-off-by: urizaf <urizaf@gmail.com>
Signed-off-by: urizaf-work <uri.zafrir@kaltura.com>
Signed-off-by: urizaf <urizaf@gmail.com>
Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com>
Signed-off-by: urizaf <urizaf@gmail.com>
* update READMEs based on new architecture

Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>

* PR comments

Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>

* Update ui/README.md

---------

Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
Co-authored-by: Peter Jausovec <peterj@users.noreply.github.com>
Signed-off-by: urizaf <urizaf@gmail.com>
* - fixes adk performance tuning
- dependency versions update

Signed-off-by: Dmytro Rashko <dmitriy.rashko@amdocs.com>

* fix VERSION in case forked repository without tags

Signed-off-by: Dmytro Rashko <dmitriy.rashko@amdocs.com>

* revert uv version

Signed-off-by: Dmytro Rashko <dmitriy.rashko@amdocs.com>

* updated golden e2e

Signed-off-by: Dmytro Rashko <dmitriy.rashko@amdocs.com>

* fix helm unit tests

Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>

---------

Signed-off-by: Dmytro Rashko <dmitriy.rashko@amdocs.com>
Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
Co-authored-by: Eitan Yarmush <eitan.yarmush@solo.io>
Signed-off-by: urizaf <urizaf@gmail.com>
* feat: make streaming buffer size configurable

Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>

* switch to resource quantities for buffer size

Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>

---------

Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
Signed-off-by: urizaf <urizaf@gmail.com>
Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
Signed-off-by: urizaf <urizaf@gmail.com>
* EP-685-kmcp

Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>

* Update design/EP-685-kmcp.md

Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>

---------

Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
Co-authored-by: Lin Sun <lin.sun@solo.io>
Signed-off-by: urizaf <urizaf@gmail.com>
Signed-off-by: urizaf <urizaf@gmail.com>
Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com>
Co-authored-by: Peter Jausovec <peterj@users.noreply.github.com>
Signed-off-by: urizaf <urizaf@gmail.com>
…agent-dev#692)

Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com>
Co-authored-by: Peter Jausovec <peterj@users.noreply.github.com>
Signed-off-by: urizaf <urizaf@gmail.com>
…d resources (kagent-dev#703)

* fix(controller): watch secrets from agents controller

Ref: https://book.kubebuilder.io/reference/watching-resources/secondary-resources-not-owned
Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com>

* fix(controller): watch memory from agents controller

Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com>

* fix(controller): watch toolservers from agents controller

Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com>

* fix(controller): watch modelconfig from agent controller

Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com>

* fix(controller): watch secrets from model config controller

Agent watches ModelConfig -> ModelConfig watches Secret

Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com>

* refactor(controller): consistent error logging

Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com>

* refactor(controller): remove `reconcileAgents`

This isn't needed any more - we only ever reconcile a single agent at a time now.

Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com>

* fix(controller): ensure api key secret exists for model config

Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com>

* refactor(controller): explicitly set error to nil for memory status

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com>

---------

Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: urizaf <urizaf@gmail.com>
@UriZafrir UriZafrir force-pushed the feat-implement-backend-for-models-ui branch from 51ba9ed to 432369a Compare August 7, 2025 13:05
@github-actions github-actions bot added the enhancement-proposal Indicates that this PR is for an enhancement proposal label Aug 7, 2025
@peterj
Copy link
Collaborator

peterj commented Aug 7, 2025

Could we use the actual Gemini icon? (there's one here: https://commons.wikimedia.org/wiki/File:Google-gemini-icon.svg)

Screenshot 2025-08-07 at 3 19 29 PM

Signed-off-by: urizaf <urizaf@gmail.com>
…Zafrir/kagent into feat-implement-backend-for-models-ui
@UriZafrir
Copy link
Contributor Author

done
image

@peterj peterj merged commit 1797ed9 into kagent-dev:main Aug 8, 2025
10 of 11 checks passed
peterj added a commit that referenced this pull request Aug 8, 2025
…nya/kmcp

* 'eitanya/kmcp' of github.com:kagent-dev/kagent:
  make audit bump go and some cve (#712)
  make shebang more portable (#715)
  feat: implement backend for models ui (#690)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement-proposal Indicates that this PR is for an enhancement proposal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants