[Feature Request] Recover a research bot citation after a bounded search timeout

Abierto
#446 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
32/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
ai, backend

Línea de trabajo

Start with the Python research manager and worker Activities, then trace how exhausted search attempts are handled and how results reach the report writer. Decide where an optional WebRouter fallback belongs and how its retry policy distinguishes timeouts from authentication failures. Done means failed planned questions can include a source URL and excerpt, while successful searches and authentication failures make no fallback calls.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Is your feature request related to a problem? Please describe.

In the Python research bot, a search that still fails when its model Activity returns produces no entry in the list sent to the report writer. A reader cannot tell which planned question lost its evidence.

Describe the solution you'd like

Would an opt-in example of recovering a public-source citation after a bounded search timeout fit this sample? The worker would allowlist the public documentation domains it can query. Once the configured search attempts are exhausted, a separate Activity would use WebRouter to find the source and read a matching passage. The result would identify the planned question, source URL and excerpt. Successful hosted searches would continue normally. Authentication failures would remain unavailable.

Additional context

I tested the research manager on a local Temporal server with the OpenAI Agents plugin and a deterministic local model. A one-off timeout recovered through the sample’s normal retry. With a two-attempt limit, two persistent timeouts left two questions unanswered. The optional Activity then recovered the requested details from a NIST PDF and a W3C HTML table with real keyless reads. A successful search and a simulated authentication failure each made zero fallback calls.

The test used an explicit attempt limit. The shipped worker has no such limit, so placement and retry policy are part of the design question. I maintain WebRouter. WebRouter documentation

Lenguaje dominante
Python
Estrellas
382
Forks
129
Merge medio
3 d 17 h
PR fusionados (30 d)
8

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de temporalio/samples-python

Todos los issues de temporalio/samples-python

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.