[FR]: Testing agent should run dynamic (activity-scoped) app functions in their activity
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 45/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Bereich
- backend-api-design, mobile
Rechercherichtung
Read ExecuteAppFunctionUseCase and the Debug tab state that exposes AppFunctionState.activityIds; the issue does not name their file paths. Start by tracing how the use case builds ExecuteAppFunctionRequest and how the Debug tab chooses a registering activity. Done means Debug can run a dynamic function in a selected registering activity, while agent calls either target the foreground activity or omit unsupported dynamic functions until that is possible.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Is there an existing issue for this?
- I have searched the existing issues
Describe the problem
Dynamic app functions (@AppFunctionSignature(scope = AppFunctionMetadata.SCOPE_ACTIVITY), registered from an Activity with AppFunctionManager.registerAppFunction / handleAppFunction) can only be executed with ExecuteAppFunctionRequest.activityId set to an activity that registers them. Otherwise the platform returns ERROR_FUNCTION_NOT_FOUND.
The testing agent never sets an activity ID (ExecuteAppFunctionUseCase builds the request from the package name, function ID and parameters only), so:
- The Debug tab can't run a dynamic function. Since #104, it shows the function as "Dynamic" with the number of activities that register it, and keeps Run disabled with an explanation.
- In Agent Demo and Live sessions, a registered dynamic function is offered to the model (
isEnabledis true while it is registered), but every call fails with FUNCTION_NOT_FOUND.
Describe the solution
- Debug tab: run a dynamic function in an activity that registers it (
AppFunctionState.activityIds, API 37+), with a choice when several activities register it. - Agent: for the overlay / split-screen CUJ described in #94 ("put a poem into the current chat thread"), target the foreground activity, e.g. via
VoiceInteractionSession.getAppFunctionActivityId. Until then, consider leaving dynamic functions out of the tools sent to the model, since calls to them can't succeed.
Additional context
Found during "Function state & tests" (#104). Related to #94 and #98.
Code of Conduct
- I agree to follow this project's Code of Conduct
- Vorherrschende Sprache
- Kotlin
- Sterne
- 222
- Forks
- 54
- Ø Merge
- 1 T. 11 Std.
- Gemergte PRs (30 T.)
- 26
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine 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 android/appfunctions
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
android/appfunctions#84 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
android/appfunctions#82 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
android/appfunctions#81 ·
Maintainer antworten meist innerhalb von 1 Tag
-
documentation
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
android/appfunctions#66 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
android/appfunctions#62 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in android/appfunctions
Ähnliche Issues
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
MetrolistGroup/Metrolist#5426 · 1 Kommentar · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
🐛 Type:Bug 📥 State:Awaiting Assignment 🚨 Priority: P0 - Critical
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
good first issue help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
micronizationlab/glafira-ai-hub#785 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
sorsama/deepseek-harness-mobile#154 ·
Maintainer antworten meist innerhalb von 1 Tag
-
0. Needs triage enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag