[appkit plugin] [3/x] Add appkit-agent documentation#385
[appkit plugin] [3/x] Add appkit-agent documentation#385hubertzub-db wants to merge 5 commits intodatabricks:mainfrom
Conversation
cc59fe8 to
22f46f4
Compare
integrations/appkit-agent/README.md
Outdated
|
|
||
| ## Databricks Apps Deployment | ||
|
|
||
| When deploying to Databricks Apps, alias the agent endpoint to `/invocations`: |
There was a problem hiding this comment.
We should probably explain why (?) - to ensure Databricks product UIs support interacting with + chatting with the agent defined in the app
There was a problem hiding this comment.
sg, added an improved description
f310a95 to
3aa9645
Compare
3aa9645 to
9729f32
Compare
integrations/appkit-agent/README.md
Outdated
| ```typescript | ||
| // Genie Space — natural-language queries over your data | ||
| const genie = { | ||
| type: "genie-space" as const, |
There was a problem hiding this comment.
should be genie_space not genie-space, right?
integrations/appkit-agent/README.md
Outdated
| @@ -0,0 +1,246 @@ | |||
| # @databricks/appkit-agent | |||
|
|
|||
| Agent plugin for [Databricks AppKit](https://github.com/databricks/appkit). Provides two things: | |||
There was a problem hiding this comment.
| Agent plugin for [Databricks AppKit](https://github.com/databricks/appkit). Provides two things: | |
| Agent plugin for [Databricks AppKit](https://github.com/databricks/appkit). You can define an agent using one of the following approaches: |
integrations/appkit-agent/README.md
Outdated
|
|
||
| Agent plugin for [Databricks AppKit](https://github.com/databricks/appkit). Provides two things: | ||
|
|
||
| 1. **`AgentInterface`** — a contract for writing custom agent implementations that speak the OpenAI Responses API format (streaming + non-streaming). |
There was a problem hiding this comment.
| 1. **`AgentInterface`** — a contract for writing custom agent implementations that speak the OpenAI Responses API format (streaming + non-streaming). | |
| 1. Declaratively define an agent by specifying `model`, `tools,` and `instructions` | |
| 2. Implement a custom agent loop using **`AgentInterface`** — a contract for writing custom agent implementations that speak the OpenAI Responses API format (streaming + non-streaming). |
There was a problem hiding this comment.
Maybe good to frame things this way - developers probably don't care (and in the code it's not super visible right?) that they're using StandardAgent etc
integrations/appkit-agent/README.md
Outdated
| agent({ agentInstance: new MyAgent() }); | ||
| ``` | ||
|
|
||
| The `StandardAgent` class (exported from this package) is the built-in implementation that wraps a LangGraph `createReactAgent` and translates its stream events into Responses API format. When you pass `model` instead of `agentInstance`, the plugin uses `StandardAgent` under the hood. |
There was a problem hiding this comment.
We can remove references to LangGraph to future-proof these docs (since we will likely change frameworks down the line)
smurching
left a comment
There was a problem hiding this comment.
Docs mostly look good! Minor comments, happy to stamp once addressed
9729f32 to
8fc367a
Compare
c10d565 to
99e2e0c
Compare
58ab4d8 to
25dfdc7
Compare
Move agent plugin source code into src/agent-plugin/ subfolder for better organization when hosting multiple plugins.
Signed-off-by: Hubert Zub <hubert.zub@databricks.com>
Signed-off-by: Hubert Zub <hubert.zub@databricks.com>
25dfdc7 to
96a56f3
Compare
🥞 Stacked PR
Summary
Adds
README.mdfor the@databricks/appkit-agentpackage covering:createApp+server()+agent()setup)model,systemPrompt,tools,agentInstance)executehandler)app.agent.addTools()invoke,stream)/invocations→/api/agentaliasing)AgentInterface