Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat: Support LangChain orchestration client streaming #711

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 84 commits into from
May 23, 2025
Merged
Changes from 1 commit
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
996a818
chore: progress till now
KavithaSiva May 1, 2025
6c9039f
chore: progress till now
KavithaSiva May 7, 2025
a84b446
Merge branch 'main' into langchain-orchestration-client-streaming
KavithaSiva May 7, 2025
a54250f
chore: update implementation
KavithaSiva May 9, 2025
e0f0e68
chore: minor corrections
KavithaSiva May 9, 2025
9a743b6
chore: add changeset
KavithaSiva May 9, 2025
d386b30
Merge branch 'main' into langchain-orchestration-client-streaming
KavithaSiva May 9, 2025
8c4a7ec
chore: change finish_reason storage
KavithaSiva May 9, 2025
989f742
Merge branch 'langchain-orchestration-client-streaming' of github.com…
KavithaSiva May 9, 2025
db8491f
chore: update additonal properties
KavithaSiva May 9, 2025
fd37e19
chore: revert type change for additional_properties
KavithaSiva May 9, 2025
009b508
Merge branch 'main' into langchain-orchestration-client-streaming
KavithaSiva May 9, 2025
ca2c7bc
Merge branch 'main' into langchain-orchestration-client-streaming
KavithaSiva May 12, 2025
175e9b9
Update .changeset/chilly-steaks-divide.md
KavithaSiva May 14, 2025
dd0a47c
chore: address review comments
KavithaSiva May 14, 2025
13f10ce
Merge branch 'main' into langchain-orchestration-client-streaming
KavithaSiva May 14, 2025
96df564
chore: use convenience functions always
KavithaSiva May 14, 2025
5769148
chore: switch to map
KavithaSiva May 15, 2025
643a6bb
chore: add more convenience functions
KavithaSiva May 15, 2025
7503191
chore: address review comments
KavithaSiva May 18, 2025
a6cb6d7
chore: simplify function
KavithaSiva May 18, 2025
aad9a05
chore: review comment
KavithaSiva May 18, 2025
25a4a79
chore: simplify
KavithaSiva May 18, 2025
c72f742
chore: remove e2e test
KavithaSiva May 18, 2025
2a3d810
chore: add tests, minor changes
KavithaSiva May 18, 2025
f5c8473
chore: additional test for utility functions
KavithaSiva May 19, 2025
fd331ef
chore: add test for tool calls
KavithaSiva May 19, 2025
b12bc70
Merge branch 'main' into langchain-orchestration-client-streaming
KavithaSiva May 19, 2025
0be7944
chore: add tests for mapping function
KavithaSiva May 19, 2025
373ccac
Merge branch 'langchain-orchestration-client-streaming' of github.com…
KavithaSiva May 19, 2025
ffd2456
chore: fix failing test
KavithaSiva May 19, 2025
364ae6b
chore: refactor test names
KavithaSiva May 19, 2025
2d3908d
Merge branch 'main' into langchain-orchestration-client-streaming
KavithaSiva May 19, 2025
a8359cc
Merge branch 'main' into langchain-orchestration-client-streaming
KavithaSiva May 19, 2025
53666d9
Update packages/langchain/src/orchestration/client.ts
KavithaSiva May 19, 2025
a690099
chore: adapt name
KavithaSiva May 19, 2025
c24f9f5
chore: review changes
KavithaSiva May 19, 2025
acecf11
Update sample-code/src/langchain-orchestration.ts
KavithaSiva May 19, 2025
3459207
Update sample-code/src/langchain-orchestration.ts
KavithaSiva May 20, 2025
5dab701
chore: fix rename
KavithaSiva May 20, 2025
448c403
chore: address JSDoc
KavithaSiva May 20, 2025
b6191a6
chore: link BLI instead
KavithaSiva May 20, 2025
56ea273
chore: switch to hardcoded choice index
KavithaSiva May 20, 2025
dbf7174
chore: add convenience functions
KavithaSiva May 20, 2025
f82301e
chore: add convenience + tests
KavithaSiva May 20, 2025
ac9f6e8
chore: clean up generate
KavithaSiva May 20, 2025
cdb4749
chore: add callWithOptions back
KavithaSiva May 20, 2025
c073c88
Update packages/langchain/src/orchestration/util.ts
KavithaSiva May 20, 2025
58434d5
Update packages/langchain/src/orchestration/util.ts
KavithaSiva May 20, 2025
f51b1d7
Merge branch 'main' into langchain-orchestration-client-streaming
KavithaSiva May 20, 2025
64f16c7
chore: fix build
KavithaSiva May 20, 2025
1cacf75
chore: fix build
KavithaSiva May 20, 2025
0b34760
Update packages/langchain/src/orchestration/client.test.ts
KavithaSiva May 20, 2025
206067a
chore: rename
KavithaSiva May 21, 2025
4560687
chore: fix build
KavithaSiva May 21, 2025
32971bd
chore: adjust test
KavithaSiva May 21, 2025
a9fc5d9
Update packages/langchain/src/orchestration/client.test.ts
KavithaSiva May 21, 2025
46ddc01
chore: address review comment
KavithaSiva May 21, 2025
473e9d8
Merge branch 'langchain-orchestration-client-streaming' of github.com…
KavithaSiva May 21, 2025
27fc55b
chore: link BLI
KavithaSiva May 21, 2025
6b50d39
chore: cleanup tests
KavithaSiva May 21, 2025
be56c21
chore: address review comments
KavithaSiva May 22, 2025
93b6cf2
chore: review comments
KavithaSiva May 22, 2025
40da119
chore: Add snapshot tests instead
KavithaSiva May 22, 2025
cc81b03
Merge branch 'main' into langchain-orchestration-client-streaming
KavithaSiva May 22, 2025
94ceda9
chore: fix issues after merge conflict
KavithaSiva May 22, 2025
ad368c1
fix: Changes from lint
May 22, 2025
8968eb4
chore: fix tests
KavithaSiva May 22, 2025
b2ae5d0
Merge branch 'langchain-orchestration-client-streaming' of github.com…
KavithaSiva May 22, 2025
dcd5550
Merge branch 'main' into langchain-orchestration-client-streaming
KavithaSiva May 22, 2025
dd9c34f
chore: use mockInference instead of inference with resilience
KavithaSiva May 22, 2025
146825f
Update packages/langchain/src/orchestration/util.ts
KavithaSiva May 22, 2025
80f1e7d
Update packages/langchain/src/orchestration/util.ts
KavithaSiva May 22, 2025
d08f4a8
chore: review comment
KavithaSiva May 22, 2025
1eac3c7
chore: Remove test file and adapt
KavithaSiva May 22, 2025
9003b02
chore: adapt sample code
KavithaSiva May 22, 2025
92ea3b3
chore: address review comment
KavithaSiva May 22, 2025
3df806a
chore: improve comment
KavithaSiva May 22, 2025
60a4f44
Merge branch 'main' into langchain-orchestration-client-streaming
KavithaSiva May 22, 2025
b4dae2b
chore: add test for testing timeout
KavithaSiva May 22, 2025
d87c204
Merge branch 'langchain-orchestration-client-streaming' of github.com…
KavithaSiva May 22, 2025
79a3f1a
Update packages/orchestration/src/orchestration-stream-chunk-response…
KavithaSiva May 23, 2025
cf0f01e
chore: fix test
KavithaSiva May 23, 2025
69b66e9
fix: Changes from lint
May 23, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: minor corrections
  • Loading branch information
KavithaSiva committed May 9, 2025
commit e0f0e68fa7377957930b408b16a1bf19c5b33a87
6 changes: 3 additions & 3 deletions 6 packages/langchain/src/orchestration/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,11 @@ export function mapOutputToChatResult(
}

/**
* Converts orchestration stream chunk to an appropriate message chunk based on role.
* Converts orchestration stream chunk to amessage chunk.
* @param chunkData - The content of the message.
* @param delta - The delta content from the chunk.
* @param defaultRole - The default role to use if not specified in the delta.
* @returns A message chunk of the appropriate type based on the role.
* @returns A message chunk compatible with Langchain's {@link AIMessageChunk}
* @internal
*/
export function _convertOrchestrationChunkToMessageChunk(
Expand All @@ -218,7 +218,7 @@ export function _convertOrchestrationChunkToMessageChunk(
const role = delta.role ?? defaultRole ?? 'assistant';
const content = delta.content ?? '';

// Handle additional kwargs for function and tool calls
// Handle additional kwargs for tool calls
const additional_kwargs: Record<string, unknown> = {};

// Handle tool calls
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.