tom_llm 0.1.2
tom_llm: ^0.1.2 copied to clipboard
The one LLM provider contract for Tom applications — a request, a provider that runs it as a typed event stream, capabilities and availability — with the run trail it streams: the event model, session [...]
Changelog #
0.1.2 #
- The live trail writes streamed thinking and text in the VS Code
extension's delta form:
LlmLiveTrailText.appendThinking/appendAssistantTexttakedelta: trueand append a chunk with no newline of its own; the next write that does not continue the stream closes the open line first.LlmLiveTrailSessionpasses each delta as it arrives instead of a line at a time, so a word split across chunks stays whole and an open line is written at once. Whole blocks are written as before. New fixtureextension_streamed.md, recorded from the extension's writer.
0.1.1 #
Documentation #
LlmSessionBusyExceptionsays when it is raised: an app whose user starts runs refuses a second run of a session rather than queueing it, and a backend serving its own lanes may queue instead and then never raises it.
0.1.0 #
Package #
- Lives in the basics repository (
tom_ai/basics/tom_llm); it wastom_core_llmintom_ai/corebefore its first release.
Added #
- Test support.
package:tom_llm/testing.dart:llmFakeRun, the run of a fake provider built from the text it answers. - The provider contract.
LlmProviderwithrun(LlmRequest)as a stream ofLlmEvents andcompletederived from it,capabilities, availability with a reason,trailsand a refusingembed;LlmUnavailableProviderfor a build with no AI. - The request.
WirePrompt(two channels, anchor hash, role as purpose),LlmOptions,LlmContextSummary,LlmToolBindingwithLlmToolAnswer,ToolCatalogueandToolDescriptor. - The run. The closed
LlmEventunion, ended byLlmRunCompleted(with itsLlmCallReport) orLlmRunFailed(with itsLlmFailure);LlmRunAccount, which ends a run from its own events;llmRunPrelude,llmAnswerText,llmReportOf;LlmTransportExceptionandLlmErrorKind. - Sessions and trails.
LlmTrails,LlmTrailRecord,LlmSessionRegistry,llmSessionFor; the trail foldllmTrailEntries;LlmTrailFileWriterwith the live-trail and summary-trail formats of the VS Code extension, over anLlmTrailMediumand anLlmTrailLog. - The Node search.
llmDiscoverNodeand its report; the machine half,LlmProcessNodeHostandllmNodeResolverFor, behindio.dart.