AppKit does not support agentic genie, only chat API
Maintainer antworten meist innerhalb von 3 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 55/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- node.js, react, typescript
- Bereich
- backend-api-design
Rechercherichtung
Start by locating AppKit’s existing Genie chat API integration and its tests; the issue does not name specific files or test commands. Compare that flow with the listed agent response, conversation message retrieval, and visualization download APIs, including the enable_viz flag and raw PNG response. Done means AppKit supports agentic responses and retrieves completed messages and visualizations.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
What is available is only chat apis, and these do not provide "thinking" agentic responses.
The agentic api is a bit more complex to use, as by default it does not send visualisations, which needs to be enabled by a enable_viz flag, and then visualisations need to have PNG downloaded via another API call.
Here is the list of APIs that should be used in AppKit to provide agentic genie experience:
Option A: Agent mode
- Create an Agent-mode response
curl -N -X POST \
"$DATABRICKS_HOST/api/2.0/genie/agents/$AGENT_ID/responses" \
-H "Authorization: Bearer $DATABRICKS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"enable_viz": true,
"input": [{
"type": "message",
"role": "user",
"content": [{
"type": "input_text",
"text": "Show revenue by region as a bar chart for last quarter"
}]
}]
}'
This returns an SSE stream. Capture the conversation_id from response.created and wait for response.completed.
- Retrieve the completed message
Use the Agent ID as the space_id:
curl "$DATABRICKS_HOST/api/2.0/genie/spaces/$AGENT_ID/conversations/$CONVERSATION_ID/messages" \
-H "Authorization: Bearer $DATABRICKS_TOKEN"
Find the completed message containing:
{
"message_id": "MESSAGE_ID",
"status": "COMPLETED",
"attachments": [
{
"attachment_id": "VIZ_ATTACHMENT_ID",
"viz": {
"title": "Revenue by region",
"query_attachment_id": "QUERY_ATTACHMENT_ID"
}
}
]
}
Use the attachment_id belonging to the viz attachment—not query_attachment_id. Agent-mode messages are available through the conversation messages API as Genie message projections.
- Download the visualization as PNG
curl -L \
"$DATABRICKS_HOST/api/2.0/genie/spaces/$AGENT_ID/conversations/$CONVERSATION_ID/messages/$MESSAGE_ID/attachments/$VIZ_ATTACHMENT_ID/download-visualization" \
-H "Authorization: Bearer $DATABRICKS_TOKEN" \
-H "Accept: image/png" \
-o chart.png
The response body is the raw PNG binary, not JSON. The message must be COMPLETED, and the attachment must be a visualization.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 119
- Forks
- 36
- Ø Merge
- 4 T. 16 Std.
- Gemergte PRs (30 T.)
- 37
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus databricks/appkit
-
@databricks/lakebase: pool drops maxLifetimeSeconds and other pg options, so connections never recycle and Unity Catalog claims access fails after 4 hoursEvtl. vergeben @billmcmillin hat das vor 5 Tagen übernommen. Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 20/100
databricks/appkit#718 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
databricks/appkit#699 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Schwierigkeit 3/5 Ein halber Tag Anfängerfreundlichkeit 42/100
databricks/appkit#656 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 28/100
databricks/appkit#648 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 58/100
databricks/appkit#603 ·
Maintainer antworten meist innerhalb von 3 Tagen
Alle Issues in databricks/appkit
Ähnliche Issues
-
Add "append" and "prepend" slots for vue-vuetify extended renderersEvtl. vergeben @simeyc hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
eclipsesource/jsonforms#2668 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
README の通知条件を実際の判定処理に合わせるEvtl. vergeben @unhappychoice hat das heute übernommen. Offenfactory:in-progress priority:medium
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
unhappychoice/oss-issue-opener#395 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug Website
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
OWASP/OWASP-Hunting#88 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag