-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Steps to follow:
0. Create an agentspace app
- Create an agent with google adk and deploy to agent engine
- Clone this repo, use uv to install dependencies
- Edit the
config.jsonto have the following known values defined:
{
"project_id": "...",
"location": "...",
"re_resource_name": "...",
"re_resource_id": "...",
"re_display_name": "...",
"app_id": "...",
"adk_deployment_id": "...",
"icon_uri": "...",
"api_location": "...",
"re_location": "..."
}
- Run
uv run python as_registry_client.py - Enter the display name, description, tool descriptions, and no auth id.
Observe:
info log:
INFO:root:Create Agent Command: ['curl', '-X', 'POST', '-H', 'Authorization: Bearer ...', 'https://discoveryengine.googleapis.com/v1alpha/projects/<MY_PROJECT_ID_NOT_NUMBER>/locations/global/collections/default_collection/engines/<MY_AGENTSPACE_APP_ID>/assistants/default_assistant/agents', '-d', '{"displayName": "<NAME_I_ENTERED", "description": "<BRIEF_DESCRIPTION_I_ENTERED>", "adk_agent_definition": {"tool_settings": {"tool_description": "<BRIEF_TOOL_DESCRIPTION_I_ENTERED>"}, "provisioned_reasoning_engine": {"reasoning_engine": "projects/<MY_PROJECT_ID_NOT_NUMBER>/locations/global/reasoningEngines/<MY_AGENTSPACE_APP_ID>"}, "authorizations": []}, "icon": {"uri": "https://.....com/....png"}}']
and response
{
"status_code": 0,
"stdout": "{\n \"error\": {\n \"code\": 404,\n \"message\": \"Method not found.\",\n \"status\": \"NOT_FOUND\"\n }\n}\n",
"stderr": " % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n\n 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\n100 516 0 100 100 416 856 3562 --:--:-- --:--:-- --:--:-- 4448\n",
"agent": {
"error": {
"code": 404,
"message": "Method not found.",
"status": "NOT_FOUND"
}
}
}
Expectations:
- Observe successful 402 or 200
Do I need to add more to my config? Is the project_id supposed to be the project_number? Or is this failing for others as well?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels