feat(llm): halkyon_llm, language models' APIs streamed over plain HTTP (ADR 0021, step 2)
A pure Dart package, no SDKs, one interface (LlmClient) over Anthropic's Messages API, OpenAI's chat completions, in each known host's dialect and the local servers' (D45), and OpenAI's Responses API, stateless (D46). A model's turn keeps what its provider wants back with the tools' results: Anthropic's thinking blocks, the Responses API's reasoning items and message phase, Gemini's thought signatures. Failures come by kind, the provider's words cut and without keys. Tested on replies written from the providers' documentation, replayed in pieces of 1, 7 and 4,096 bytes; tool/record_llm.dart records real ones with a key of one's own, which the tests then run on too (D36). FakeLlmClient for the code that uses it. BSD-3-Clause, as halkyon_oidc. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
parent
e4c7259df3
commit
038aca5439
1 changed files with 4841 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ workspace:
|
|||
- packages/halkyon_core
|
||||
- packages/halkyon_interop
|
||||
- packages/halkyon_keys
|
||||
- packages/halkyon_llm
|
||||
- packages/halkyon_oidc_client
|
||||
- packages/halkyon_oidc_flutter
|
||||
- packages/halkyon_oidc_server
|
||||
|
|
|
|||
Loading…
Reference in a new issue