Implement Anthropic prompt caching for Claude 3.7 Sonnet #2193
Annotations
10 errors
mypy:
src/codegen/extensions/langchain/llm.py#L146
error: Argument 1 of "bind_tools" is incompatible with supertype "BaseChatModel"; supertype defines the argument type as "Sequence[dict[str, Any] | type | Callable[..., Any] | BaseTool]" [override]
|
mypy:
src/codegen/agents/code_agent.py#L100
error: Item "None" of "dict[Any, Any] | None" has no attribute "get" [union-attr]
|
mypy:
src/codegen/agents/code_agent.py#L101
error: Item "None" of "dict[Any, Any] | None" has no attribute "get" [union-attr]
|
mypy:
src/codegen/agents/code_agent.py#L103
error: Item "None" of "dict[Any, Any] | None" has no attribute "get" [union-attr]
|
mypy:
src/codegen/agents/code_agent.py#L107
error: Expected iterable as variadic argument [misc]
|
mypy:
src/codegen/agents/code_agent.py#L116
error: Unpacked dict entry 2 has incompatible type "dict[Any, Any] | None"; expected "SupportsKeysAndGetItem[Any, Any]" [dict-item]
|
mypy:
src/codegen/agents/code_agent.py#L141
error: Dict entry 1 has incompatible type "str": "dict[str, str]"; expected "str": "str" [dict-item]
|
mypy:
src/codegen/agents/code_agent.py#L146
error: Argument "content" to "HumanMessage" has incompatible type "list[dict[str, str]]"; expected "str | list[str | dict[Any, Any]]" [arg-type]
|
mypy:
src/codegen/agents/code_agent.py#L151
error: Argument 1 to "process_stream" of "MessageStreamTracer" has incompatible type "Iterator[dict[str, Any] | Any]"; expected "Generator[Any, None, None]" [arg-type]
|
mypy:
src/codegen/agents/code_agent.py#L158
error: Argument "content" to "HumanMessage" has incompatible type "list[dict[str, str]]"; expected "str | list[str | dict[Any, Any]]" [arg-type]
|