-
Notifications
You must be signed in to change notification settings - Fork 15.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core,standard-tests[patch]: add Ser/Des test and update serialization…
… mapping (#26042)
- Loading branch information
Showing
47 changed files
with
3,100 additions
and
2,083 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
69 changes: 69 additions & 0 deletions
69
libs/partners/anthropic/tests/unit_tests/__snapshots__/test_standard.ambr
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# serializer version: 1 | ||
# name: TestAnthropicStandard.test_serdes[serialized] | ||
dict({ | ||
'graph': dict({ | ||
'edges': list([ | ||
dict({ | ||
'source': 0, | ||
'target': 1, | ||
}), | ||
dict({ | ||
'source': 1, | ||
'target': 2, | ||
}), | ||
]), | ||
'nodes': list([ | ||
dict({ | ||
'data': 'ChatAnthropicInput', | ||
'id': 0, | ||
'type': 'schema', | ||
}), | ||
dict({ | ||
'data': dict({ | ||
'id': list([ | ||
'langchain', | ||
'chat_models', | ||
'anthropic', | ||
'ChatAnthropic', | ||
]), | ||
'name': 'ChatAnthropic', | ||
}), | ||
'id': 1, | ||
'type': 'runnable', | ||
}), | ||
dict({ | ||
'data': 'ChatAnthropicOutput', | ||
'id': 2, | ||
'type': 'schema', | ||
}), | ||
]), | ||
}), | ||
'id': list([ | ||
'langchain', | ||
'chat_models', | ||
'anthropic', | ||
'ChatAnthropic', | ||
]), | ||
'kwargs': dict({ | ||
'anthropic_api_key': dict({ | ||
'id': list([ | ||
'ANTHROPIC_API_KEY', | ||
]), | ||
'lc': 1, | ||
'type': 'secret', | ||
}), | ||
'anthropic_api_url': 'https://api.anthropic.com', | ||
'default_request_timeout': 60.0, | ||
'max_retries': 2, | ||
'max_tokens': 100, | ||
'model': 'claude-3-haiku-20240307', | ||
'stop_sequences': list([ | ||
]), | ||
'stream_usage': True, | ||
'temperature': 0.0, | ||
}), | ||
'lc': 1, | ||
'name': 'ChatAnthropic', | ||
'type': 'constructor', | ||
}) | ||
# --- |
This file contains 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
Oops, something went wrong.