adk-docs icon indicating copy to clipboard operation
adk-docs copied to clipboard

Documentation inconsistency - Cloud Run Agent Deployement

Open Apollovishwas opened this issue 1 year ago • 2 comments

Describe the bug Parameter for get_fast_api_app function in main.py , mentioned in the documentation, differs from actual upadted code

Parameters in Documentation

get_fast_api_app(
    agents_dir=AGENT_DIR,
    session_db_url=SESSION_DB_URL,
    allow_origins=ALLOWED_ORIGINS,
    web=SERVE_WEB_INTERFACE,
)

Parameters in 1.3.0 release

def get_fast_api_app(
    *,
    agents_dir: str,
    session_service_uri: Optional[str] = None,
    artifact_service_uri: Optional[str] = None,
    memory_service_uri: Optional[str] = None,
    allow_origins: Optional[list[str]] = None,
    web: bool,
    trace_to_cloud: bool = False,
    lifespan: Optional[Lifespan[FastAPI]] = None,
) 

Explanation session_db_url=SESSION_DB_URL, mentioned in the documentation is different than session_service_uri: Optional[str] = None,

Apollovishwas avatar Jun 17 '25 08:06 Apollovishwas

I have this PR for the fix https://github.com/google/adk-docs/pull/409

DeanChensj avatar Jun 17 '25 18:06 DeanChensj

@DeanChensj Could you submit your change?

hangfei avatar Jul 02 '25 14:07 hangfei