halkyon/packages/halkyon_llm/lib/halkyon_llm.dart
Tizian 「ティツィアーン」 0590a4b43d
feat(llm): a request carries how much the model thinks, in each provider's field
LlmRequest.effort (LlmEffort: low, medium, high, xhigh, max, Anthropic's
names) goes as Anthropic's output_config.effort, as reasoning.effort to
the Responses API and OpenRouter, and as reasoning_effort to OpenAI's chat
completions, Gemini and any other host. endpoint.efforts says which
levels a host takes (Gemini low to high, Mistral none); send refuses
another before anything goes, the fake client too. LlmEffort.outputCeiling
gives the room for output each level wants, as thinking counts towards
the ceiling (Halkyon Learn's ADR 0021, D63).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
2026-10-26 16:21:53 +01:00

13 lines
638 B
Dart

/// Language models' APIs in pure Dart, streamed, over plain HTTP (ADR 0021,
/// point 5): Anthropic's Messages API, OpenAI's chat completions (and every
/// service compatible with them, each known host's fields, D45) and OpenAI's
/// Responses API (D46), behind one interface of what all three share: a
/// system prompt and messages, text as it is written, images, and tool
/// calls. Nothing here keeps or logs what is asked or answered.
library;
export 'src/client.dart' show EndpointEfforts, HttpLlmClient, LlmClient;
export 'src/conversation.dart';
export 'src/effort.dart';
export 'src/endpoint.dart';
export 'src/failure.dart';