a2aproject / a2aproject/a2a-samples

Missing dependency and outdated README

Aberta Para iniciantes
#397 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Jupyter Notebook
Estrelas
1.8k
Forks
751
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

Branch: main
README.md for the github-agent sample `samples/python/agents/github-agent` is outdated:
```
uv run . http://localhost:10007
> Using CPython 3.13.9
> Creating virtual environment at: ...
> Built a2a-sample-client-cli ...
> Usage: . [OPTIONS]
> Try '. --help' for help. > Error: Got unexpected extra argument (http://localhost:10007)
```

Missing dependency: fastapi
```
class A2AFastAPI(FastAPI):
raise TypeError(f"Cannot subclass {self!r}") TypeError: Cannot subclass typing.Any
in .venv\lib\site-packages\a2a\server\apps\jsonrpc\fastapi_app.py", line 28
```

Culprit
```
try:
from fastapi import FastAPI
_package_fastapi_installed = True
except ImportError:
FastAPI = Any # missing dependency is harder to debug this way!
_package_fastapi_installed = False
```

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

The issue is in the github-agent sample at `samples/python/agents/github-agent`. First, check the README.md for outdated instructions. Then, examine the dependency handling in `.venv/lib/site-packages/a2a/server/apps/jsonrpc/fastapi_app.py` around line 28 where FastAPI is conditionally imported. Add 'fastapi' to the project's dependencies (likely in pyproject.toml or requirements.txt). Test by running the command `uv run . http://localhost:10007` to verify the fix.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
fastapi, python
Domínio
backend-api-design, cli, documentation
Tipo de issue
Bug
Dificuldade
2/5
Tempo estimado
1-3 horas
Status de atividade
Estagnada
Clareza
Claramente especificada
Facilidade para iniciantes
65/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.