run-llama/LlamaIndexTS

Add support for streaming with Anthropic Tools

Open

#1,322 opened on Oct 11, 2024

 (4 comments) (2 reactions) (0 assignees)TypeScript (524 forks)auto 404
enhancementgood first issuehelp wanted

Repository metrics

Stars
 (3,078 stars)
PR merge metrics
 (PR metrics pending)

Description

When using the Anthropic Agent with streaming: true, you get the error: "Anthropic does not support streaming . If you remove the code block https://github.com/run-llama/LlamaIndexTS/blob/45bcf51246a12ab8fc7adc974f29b352a398dc73/packages/llamaindex/src/agent/anthropic.ts#L37-L40 streaming does work fine but if you use tools, it says tools are not supported via Anthropic.

Anthropic does support streaming with tools and it would be great to get it integrated https://docs.anthropic.com/en/api/messages-streaming#streaming-request-with-tool-use

Contributor guide