Closed Vedantsahai18 closed 1 hour ago
chat_task_def = yaml.safe_load(f"""
name: Browserbase Task
tools:
- name: computer
type: computer_20241022
computer_20241022:
display_height_px: 768
display_width_px: 1024
display_number: 1
- name: create_session
type: integration
integration:
provider: browserbase
method: create_session
setup:
api_key: "{BROWSERBASE_API_KEY}"
project_id: "{BROWSERBASE_PROJECT_ID}"
- name: get_live_urls
type: integration
integration:
provider: browserbase
method: get_live_urls
setup:
api_key: "{BROWSERBASE_API_KEY}"
project_id: "{BROWSERBASE_PROJECT_ID}"
- name: get_connect_url
type: integration
integration:
provider: browserbase
method: get_connect_url
setup:
api_key: "{BROWSERBASE_API_KEY}"
project_id: "{BROWSERBASE_PROJECT_ID}"
- name: perform_action
type: integration
integration:
provider: remote_browser
method: perform_action
setup:
width: "1024"
height: "768"
- name: spider_crawler
type: integration
integration:
provider: spider
setup:
spider_api_key: "KEY"
main:
- tool: spider_crawler
arguments:
url: "'https://julep.ai'"
# - prompt:
# - role: user
# content: >-
# You have access to a computer. Use it to tell me the current time.
# disable_cache: true
# auto_run_tools: true
# - tool: create_session
# arguments:
# project_id: "{BROWSERBASE_PROJECT_ID}"
# - evaluate:
# session_id: "_['id']"
# - tool: get_live_urls
# arguments:
# id: "_['session_id']"
# - evaluate:
# debugger_url: "_['urls']['debuggerUrl']"
# - tool: get_connect_url
# arguments:
# id: "outputs[1]['session_id']"
# - evaluate:
# connect_url: "_['url']"
# - tool: perform_action
# arguments:
# connect_url: "_['connect_url']"
# action: "navigate"
# text: "'https://julep.ai'"
""")
agents-api-multi-tenant-1 | Traceback (most recent call last):
gateway | 192.168.65.1 - - [01/Nov/2024:21:42:51 +0000] "POST /api/agents/224d2db7-a712-4e5d-9029-abc7a148c9a3/tasks/3dfafb4e-d217-442a-9e6d-b5cf008b976e HTTP/1.1" 422 4053 "-" "-" 5 "agents-api@file" "http://agents-api-multi-tenant:8080" 11ms
agents-api-multi-tenant-1 | File "/usr/local/lib/python3.12/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
agents-api-multi-tenant-1 | await app(scope, receive, sender)
agents-api-multi-tenant-1 | File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 73, in app
agents-api-multi-tenant-1 | response = await f(request)
agents-api-multi-tenant-1 | ^^^^^^^^^^^^^^^^
agents-api-multi-tenant-1 | File "/app/agents_api/routers/tasks/router.py", line 33, in custom_route_handler
agents-api-multi-tenant-1 | return await original_route_handler(request)
agents-api-multi-tenant-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
agents-api-multi-tenant-1 | File "/usr/local/lib/python3.12/site-packages/fastapi/routing.py", line 346, in app
agents-api-multi-tenant-1 | raise validation_error
π Description
π Reproduction steps
No response
π Have you spent some time to check if this bug has been raised before?