[FR]: Testing agent should run dynamic (activity-scoped) app functions in their activity
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 45/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Domínio
- backend-api-design, mobile
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
- Linguagem predominante
- Kotlin
- Estrelas
- 222
- Forks
- 54
- Merge médio
- 1d 11h
- PRs com merge (30d)
- 26
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de android/appfunctions
-
[Bug]: Fractional numbers are silently truncated for int/long parameters in the testing agentAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
android/appfunctions#84 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
android/appfunctions#82 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
android/appfunctions#81 ·
Mantenedores costumam responder em até 1 dia
-
documentation
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100
android/appfunctions#66 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
android/appfunctions#62 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
Todas as issues de android/appfunctions
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
bug needs-triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
emm3000/myGame#2175 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
MetrolistGroup/Metrolist#5426 · 1 comentário · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
🐛 Type:Bug 📥 State:Awaiting Assignment 🚨 Priority: P0 - Critical
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
-
backend
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 64/100
digitalfabrik/entitlementcard#3330 ·
Mantenedores costumam responder em até 2 dias