Open
Conversation
7750517 to
e34dbb4
Compare
8312c41 to
3e77cff
Compare
5d9eba9 to
63ebe03
Compare
63ebe03 to
303aa01
Compare
4ab32ac to
9f305e4
Compare
1655e75 to
bbafe26
Compare
a09a362 to
3f4d3df
Compare
379a896 to
d084ea0
Compare
94304b1 to
c00d95c
Compare
c9c6ce8 to
0b2689c
Compare
73ff256 to
73571c3
Compare
c908172 to
ca52c7a
Compare
ffcdebb to
185515c
Compare
185515c to
45258c1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.28.0→0.33.20.18.0→0.23.00.31.0→0.37.20.70.0→0.73.20.49.0→0.56.40.55.0→0.58.00.57.0→0.61.00.91.1→0.94.50.71.0→0.74.00.80.0→0.87.10.97.0→0.104.10.50.0→0.57.10.45.0→0.47.00.45.0→0.47.00.70.0→0.73.10.45.0→0.49.00.36.0→0.38.00.10.0→0.16.00.7.4→0.10.13.1.0→3.3.03.17.14→3.19.175.0.1→5.4.4Release Notes
Effect-TS/effect (@effect/ai)
v0.33.2Compare Source
Patch Changes
f21f034Thanks @IMax153! - Fix Prompt.fromResponseParts when input contains a provider executed toolv0.33.1Compare Source
Patch Changes
#5931
ba9e790Thanks @IMax153! - Fix the accumulation logic for response parts in the AIChatmoduleUpdated dependencies [
65e9e35,ee69cd7,488d6e8]:v0.33.0Compare Source
Patch Changes
77eeb86,ff7053f,287c32c]:v0.32.1Compare Source
Patch Changes
#5685
fb53370Thanks @janglad! - Fix Response.Part, AllParts, StreamPart not inferring Schema properly if toolkit is WithHandlerUpdated dependencies [
7d28a90]:v0.32.0Compare Source
Patch Changes
3c15d5f,3863fa8,2a03c76,24a1685]:v0.31.1Compare Source
Patch Changes
a5d0f2bThanks @IMax153! - Ensure that tool calls are emitted as soon as possible when streamingv0.31.0Compare Source
Minor Changes
#5621
4c3bdfbThanks @IMax153! - RemoveEither/EitherEncodedfrom tool call results.Specifically, the encoding of tool call results as an
Either/EitherEncodedhas been removed and is replaced by encoding the tool call success / failure directly into theresultproperty.To allow type-safe discrimination between a tool call result which was a success vs. one that was a failure, an
isFailureproperty has also been added to the"tool-result"part. IfisFailureistrue, then the tool call handler result was an error.v0.30.0Compare Source
Minor Changes
#5614
c63e658Thanks @IMax153! - Previously, tool call handler errors were always raised as an expected error in the EffectEchannel at the point of execution of the tool call handler (i.e. when agenerate*method is invoked on aLanguageModel).With this PR, the end user now has control over whether tool call handler errors should be raised as an Effect error, or returned by the SDK to allow, for example, sending that error information to another application.
Tool Call Specification
The
Tool.makeandTool.providerDefinedconstructors now take an extra optional parameter calledfailureMode, which can be set to either"error"or"return".The semantics of
failureModeare as follows:"error"(the default), errors that occur during tool call handler execution will be returned in the error channel of the calling effect"return", errors that occur during tool call handler execution will be captured and returned as part of the tool call resultResponse - Tool Result Parts
The
resultfield of a"tool-result"part of a large language model provider response is now represented as anEither.resultis aLeft, theresultwill be thefailurespecified in the tool call specificationresultis aRight, theresultwill be thesuccessspecified in the tool call specificationThis is only relevant if the end user sets
failureModeto"return". If set to"error"(the default), then theresultproperty will always be aRightwith the successful result of the tool call handler.Similarly the
encodedResultfield of a"tool-result"part will be represented as anEitherEncoded, where:{ _tag: "Left", left: <failure> }represents a tool call handler failure{ _tag: "Right", right: <success> }represents a tool call handler successPrompt - Tool Result Parts
The
resultfield of a"tool-result"part of a prompt will now only accept anEitherEncodedas specified above.Patch Changes
6ae2f5d]:v0.29.1Compare Source
Patch Changes
d628c15Thanks @IMax153! - Ensure response schema includes toolkit tools even when tool call resolution is disabledv0.29.0Compare Source
Minor Changes
f8b93acThanks @timurrakhimzhan! - Added "oneOf" property for generateText and streamText "toolChoice" to be able to pick a subset of tools, which are going to be passed to LLMPatch Changes
1c6ab74,70fe803,c296e32,a098ddf]:v0.28.4Compare Source
Patch Changes
#5570
bc83015Thanks @IMax153! - Redact headers where possible in AiError#5570
bc83015Thanks @IMax153! - Fix return type ofResponse.AllParts#5568
6c2d586Thanks @IMax153! - Support expiration of persisted chats via time to livev0.28.3Compare Source
Patch Changes
#5566
ab57b7aThanks @IMax153! - Support generation of persistence identifiers for ai chat#5540
5b13482Thanks @IMax153! - ensure decoded response metadata is always set#5566
ab57b7aThanks @IMax153! - fix prompt construction from response partsv0.28.2Compare Source
Patch Changes
#5554
800ab2eThanks @IMax153! - AcceptPrompt.RawInputinPrompt.merge#5554
800ab2eThanks @IMax153! - AddPrompt.setSystem,Prompt.prependSystem, andPrompt.appendSystemmethods#5554
800ab2eThanks @IMax153! - Improve the information available to the user following a model response error#5554
800ab2eThanks @IMax153! - Allow raw user and assistant prompt messages to accept plain strings#5554
800ab2eThanks @IMax153! - MakePromptpipeable#5554
800ab2eThanks @IMax153! - Fix leakage of provider-defined tool handler requirementsv0.28.1Compare Source
Patch Changes
aacd472Thanks @IMax153! - Add support for persisting aChatviaPersistenceEffect-TS/effect (@effect/ai-anthropic)
v0.23.0Compare Source
Patch Changes
77eeb86,ff7053f,287c32c]:v0.22.0Compare Source
Patch Changes
3c15d5f,3863fa8,2a03c76,24a1685]:v0.21.1Compare Source
Patch Changes
7de0bfcThanks @IMax153! - Ensure that model accepts a string in Anthropic request schemasv0.21.0Compare Source
Minor Changes
#5621
4c3bdfbThanks @IMax153! - RemoveEither/EitherEncodedfrom tool call results.Specifically, the encoding of tool call results as an
Either/EitherEncodedhas been removed and is replaced by encoding the tool call success / failure directly into theresultproperty.To allow type-safe discrimination between a tool call result which was a success vs. one that was a failure, an
isFailureproperty has also been added to the"tool-result"part. IfisFailureistrue, then the tool call handler result was an error.Patch Changes
4c3bdfb]:v0.20.0Compare Source
Minor Changes
#5614
c63e658Thanks @IMax153! - Previously, tool call handler errors were always raised as an expected error in the EffectEchannel at the point of execution of the tool call handler (i.e. when agenerate*method is invoked on aLanguageModel).With this PR, the end user now has control over whether tool call handler errors should be raised as an Effect error, or returned by the SDK to allow, for example, sending that error information to another application.
Tool Call Specification
The
Tool.makeandTool.providerDefinedconstructors now take an extra optional parameter calledfailureMode, which can be set to either"error"or"return".The semantics of
failureModeare as follows:"error"(the default), errors that occur during tool call handler execution will be returned in the error channel of the calling effect"return", errors that occur during tool call handler execution will be captured and returned as part of the tool call resultResponse - Tool Result Parts
The
resultfield of a"tool-result"part of a large language model provider response is now represented as anEither.resultis aLeft, theresultwill be thefailurespecified in the tool call specificationresultis aRight, theresultwill be thesuccessspecified in the tool call specificationThis is only relevant if the end user sets
failureModeto"return". If set to"error"(the default), then theresultproperty will always be aRightwith the successful result of the tool call handler.Similarly the
encodedResultfield of a"tool-result"part will be represented as anEitherEncoded, where:{ _tag: "Left", left: <failure> }represents a tool call handler failure{ _tag: "Right", right: <success> }represents a tool call handler successPrompt - Tool Result Parts
The
resultfield of a"tool-result"part of a prompt will now only accept anEitherEncodedas specified above.Patch Changes
#5615
1d2e92dThanks @janglad! - Remove accidental commit of debug console.dirUpdated dependencies [
6ae2f5d,c63e658]:v0.19.2Compare Source
Patch Changes
#5608
215ed46Thanks @IMax153! - Fix incorrect detection of either resultUpdated dependencies [
8ba4757]:v0.19.1Compare Source
Patch Changes
d7eba97Thanks @IMax153! - Fix provider defined tool results in prompt inputv0.19.0Compare Source
Patch Changes
1c6ab74,70fe803,c296e32,a098ddf,f8b93ac]:v0.18.2Compare Source
Patch Changes
122aa53Thanks @IMax153! - Ensure that AI provider clients filter response status for stream requestsv0.18.1Compare Source
Patch Changes
#5554
800ab2eThanks @IMax153! - Improve the information available to the user following a model response errorUpdated dependencies [
800ab2e,800ab2e,800ab2e,800ab2e,800ab2e,800ab2e]:Effect-TS/effect (@effect/ai-openai)
v0.37.2Compare Source
Patch Changes
577f839Thanks @thewilkybarkid! - Ensure OpenAI headers are redactedv0.37.1Compare Source
Patch Changes
#5938
72f61beThanks @tensor2077! - Fix streaming decode: response.output_item.added may emit web_search_call without action (when status="in_progress").Updated dependencies [
65e9e35,ee69cd7,488d6e8,ba9e790]:v0.37.0Compare Source
Patch Changes
77eeb86,ff7053f,287c32c]:v0.36.0Compare Source
Minor Changes
1ddd4e4Thanks @IMax153! - Update the generated OpenAI schema definitionsPatch Changes
96c9537]:v0.35.0Compare Source
Patch Changes
3c15d5f,3863fa8,2a03c76,24a1685]:v0.34.0Compare Source
Minor Changes
#5621
4c3bdfbThanks @IMax153! - RemoveEither/EitherEncodedfrom tool call results.Specifically, the encoding of tool call results as an
Either/EitherEncodedhas been removed and is replaced by encoding the tool call success / failure directly into theresultproperty.To allow type-safe discrimination between a tool call result which was a success vs. one that was a failure, an
isFailureproperty has also been added to the"tool-result"part. IfisFailureistrue, then the tool call handler result was an error.Patch Changes
4c3bdfb]:v0.33.0Compare Source
Minor Changes
#5614
c63e658Thanks @IMax153! - Previously, tool call handler errors were always raised as an expected error in the EffectEchannel at the point of execution of the tool call handler (i.e. when agenerate*method is invoked on aLanguageModel).With this PR, the end user now has control over whether tool call handler errors should be raised as an Effect error, or returned by the SDK to allow, for example, sending that error information to another application.
Tool Call Specification
The
Tool.makeandTool.providerDefinedconstructors now take an extra optional parameter calledfailureMode, which can be set to either"error"or"return".The semantics of
failureModeare as follows:"error"(the default), errors that occur during tool call handler execution will be returned in the error channel of the calling effect"return", errors that occur during tool call handler execution will be captured and returned as part of the tool call resultResponse - Tool Result Parts
The
resultfield of a"tool-result"part of a large language model provider response is now represented as anEither.resultis aLeft, theresultwill be thefailurespecified in the tool call specificationresultis aRight, theresultwill be thesuccessspecified in the tool call specificationThis is only relevant if the end user sets
failureModeto"return". If set to"error"(the default), then theresultproperty will always be aRightwith the successful result of the tool call handler.Similarly the
encodedResultfield of a"tool-result"part will be represented as anEitherEncoded, where:{ _tag: "Left", left: <failure> }represents a tool call handler failure{ _tag: "Right", right: <success> }represents a tool call handler successPrompt - Tool Result Parts
The
resultfield of a"tool-result"part of a prompt will now only accept anEitherEncodedas specified above.Patch Changes
6ae2f5d,c63e658]:v0.32.1Compare Source
Patch Changes
8048b44Thanks @janglad! - Fix FilePart validation always returning an MalformedInput errorv0.32.0Compare Source
Patch Changes
1c6ab74,70fe803,c296e32,a098ddf,f8b93ac]:v0.31.1Compare Source
Patch Changes
#5554
800ab2eThanks @IMax153! - Improve the information available to the user following a model response errorUpdated dependencies [
800ab2e,800ab2e,800ab2e,800ab2e,800ab2e,800ab2e]:Effect-TS/effect (@effect/cli)
v0.73.2Compare Source
Patch Changes
#6022
5df4da1Thanks @m9tdev! - FixedPrompt.textrendering duplicate lines when input text wraps to a new terminal line.Updated dependencies [
0023c19,e71889f,9a96b87]:v0.73.1Compare Source
Patch Changes
#5983
0d1a44fThanks @cevr! - Allow options to appear after positional argumentsPreviously,
@effect/clirequired all options to appear before positional arguments. For example,cmd --force stagingworked butcmd staging --forcefailed with "Received unknown argument".This change updates the option parsing logic to scan through all arguments to find options, regardless of their position relative to positional arguments. This aligns with the behavior of most CLI tools (git, npm, docker, etc.) which allow options anywhere in the command.
Before:
After:
Updated dependencies [
7e925ea,118e7a4,d7e75d6,4860d1e]:v0.73.0Compare Source
Patch Changes
#5853
1b23741Thanks @Masty88! - handle executable paths with spaces in CLI argumentsUpdated dependencies [
77eeb86,ff7053f, [287c32c](https://redirect.github.com/Effect-TS/effect/commit/287c32c9f10da8e96f2b9ef84Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.