langchain/libs/partners
Jacob Lee 181a61982f
anthropic[minor]: Adds streaming tool call support for Anthropic (#22687)
Preserves string content chunks for non tool call requests for
convenience.

One thing - Anthropic events look like this:

```
RawContentBlockStartEvent(content_block=TextBlock(text='', type='text'), index=0, type='content_block_start')
RawContentBlockDeltaEvent(delta=TextDelta(text='<thinking>\nThe', type='text_delta'), index=0, type='content_block_delta')
RawContentBlockDeltaEvent(delta=TextDelta(text=' provide', type='text_delta'), index=0, type='content_block_delta')
...
RawContentBlockStartEvent(content_block=ToolUseBlock(id='toolu_01GJ6x2ddcMG3psDNNe4eDqb', input={}, name='get_weather', type='tool_use'), index=1, type='content_block_start')
RawContentBlockDeltaEvent(delta=InputJsonDelta(partial_json='', type='input_json_delta'), index=1, type='content_block_delta')
```

Note that `delta` has a `type` field. With this implementation, I'm
dropping it because `merge_list` behavior will concatenate strings.

We currently have `index` as a special field when merging lists, would
it be worth adding `type` too?

If so, what do we set as a context block chunk? `text` vs.
`text_delta`/`tool_use` vs `input_json_delta`?

CC @ccurme @efriis @baskaryan
2024-06-14 09:14:43 -07:00
..
ai21 multiple: implement ls_params (#22621) 2024-06-06 16:51:37 +00:00
airbyte airbyte[patch]: airbyte-cdk compatible pydantic versions (#21738) 2024-05-15 19:13:25 -07:00
anthropic anthropic[minor]: Adds streaming tool call support for Anthropic (#22687) 2024-06-14 09:14:43 -07:00
azure-dynamic-sessions docs: add aca-ds (#21746) 2024-05-16 08:52:07 +00:00
chroma partners: fix numpy dep (#22858) 2024-06-13 14:46:42 -04:00
couchbase couchbase: Add the initial version of Couchbase partner package (#22087) 2024-06-07 14:04:08 -07:00
exa multiple: releases with relaxed core dep (#21724) 2024-05-15 19:29:35 +00:00
fireworks fireworks[patch]: add usage_metadata to (a)invoke and (a)stream (#22906) 2024-06-14 12:07:19 -04:00
groq docs: Standardize ChatGroq (#22751) 2024-06-14 03:08:36 +00:00
huggingface docs: standardize ChatHuggingFace (#22693) 2024-06-10 20:54:36 +00:00
ibm ibm[patch]: release 0.1.7 (#21737) 2024-05-15 19:10:15 -07:00
milvus milvus[patch]: Release 0.1.1 (#22499) 2024-06-04 12:00:53 -07:00
mistralai mistral[patch]: add usage_metadata to (a)invoke and (a)stream (#22781) 2024-06-11 15:34:50 -04:00
mongodb partners: fix numpy dep (#22858) 2024-06-13 14:46:42 -04:00
nomic nomic[patch]: Release 0.1.2 (#22561) 2024-06-05 17:06:58 +00:00
openai partners: fix numpy dep (#22858) 2024-06-13 14:46:42 -04:00
pinecone partners: fix numpy dep (#22858) 2024-06-13 14:46:42 -04:00
prompty docs: fix some spelling mistakes caught by newest version of code spell (#22090) 2024-05-23 16:59:11 -04:00
qdrant qdrant[patch]: Use collection_exists API instead of exceptions (#22764) 2024-06-13 20:01:32 -07:00
robocorp robocorp: typo (#22509) 2024-06-04 15:33:38 -04:00
together together: bump langchain-core (#22616) 2024-06-06 14:09:40 +00:00
upstage together, upstage: bump minimum langchain-openai version (#22505) 2024-06-04 15:20:41 -04:00
voyageai partners: Remove unnecessary print from voyageai embeddings (#21865) 2024-05-18 08:57:17 -04:00