Skip to content

Fs 143/supervisor selects tool #411

Fs 143/supervisor selects tool

Fs 143/supervisor selects tool #411

Triggered via pull request January 15, 2025 11:50
Status Failure
Total duration 53s
Artifacts

type-check-backend.yml

on: pull_request
Type Checking Backend
42s
Type Checking Backend
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
Type Checking Backend: backend/src/router.py#L46
Type "tuple[ChatAgent | None, Any, Any]" is not assignable to return type "Tuple[ChatAgent, str, dict[str, Any]] | None"   Type "tuple[ChatAgent | None, Any, Any]" is not assignable to type "Tuple[ChatAgent, str, dict[str, Any]] | None"     "tuple[ChatAgent | None, Any, Any]" is not assignable to "Tuple[ChatAgent, str, dict[str, Any]]"       Tuple entry 1 is incorrect type         Type "ChatAgent | None" is not assignable to type "ChatAgent"           "None" is not assignable to "ChatAgent"     "tuple[ChatAgent | None, Any, Any]" is not assignable to "None" (reportReturnType)
Type Checking Backend: backend/src/agents/adapters.py#L13
Argument of type "Tool | None" cannot be assigned to parameter "tool" of type "Tool" in function "validate_args"   Type "Tool | None" is not assignable to type "Tool"     "None" is not assignable to "Tool" (reportArgumentType)
Type Checking Backend: backend/src/agents/adapters.py#L14
Type "Tool | None" is not assignable to return type "Tool"   Type "Tool | None" is not assignable to type "Tool"     "None" is not assignable to "Tool" (reportReturnType)
Type Checking Backend: backend/src/supervisors/supervisor.py#L31
"None" is not iterable   "__iter__" method not defined (reportGeneralTypeIssues)
Type Checking Backend: backend/src/utils/scratchpad.py#L36
Argument of type "dict[str, Unknown | datetime | None]" cannot be assigned to parameter "object" of type "Answer" in function "append"   "timestamp" is an undefined item in type "Answer" (reportArgumentType)
Type Checking Backend: backend/tests/router_test.py#L8
"select_agent_for_task" is unknown import symbol (reportAttributeAccessIssue)
Type Checking Backend: backend/tests/agents/__init__.py#L1
"utterance_tool" is unknown import symbol (reportAttributeAccessIssue)
Type Checking Backend: backend/tests/agents/__init__.py#L1
"parameterised_tool" is unknown import symbol (reportAttributeAccessIssue)
Type Checking Backend: backend/tests/agents/adapters_test.py#L7
Argument missing for parameter "parameters" (reportCallIssue)
Type Checking Backend: backend/tests/agents/adapters_test.py#L12
Argument missing for parameter "parameters" (reportCallIssue)
Type Checking Backend
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636