feat(appkit): supervisor API adapter for agents plugin#345
Open
hubertzub-db wants to merge 1 commit into
Open
Conversation
888f8ba to
bdcc529
Compare
29c1702 to
2db7108
Compare
2db7108 to
19d7450
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a fourth
AgentAdapterthat targets the Databricks AI Gateway Responses API, so AppKit apps can host server-side-orchestrated agents (Genie, Knowledge Assistants, UC functions, custom apps, UC connections) without managing tool execution locally.What's new
fromSupervisorApi({...})— factory that returns anAgentAdapter. Uses the SDK's default credential chain (env, profiles, OAuth, OIDC) just likeDatabricksAdapter.fromModelServing.supervisorTools.*— concise factories for the five hosted tool types (genieSpace,ucFunction,knowledgeAssistant,app,ucConnection).descriptionis required on every one — it's both validation and the routing hint the LLM uses to choose between tools.@databricks/appkit/agents/supervisor-api— new subpath export so consumers pick only the adapter they want; mirrors the existing./agents/{databricks,vercel-ai,langchain}pattern.Reference app
Demo
supervisoragent inapps/dev-playground/server/index.ts. Tools are commented out by default — uncomment anysupervisorTools.*entry to give the model real powers.Test plan