Skip to main content

tom_llm 0.1.2 copy "tom_llm: ^0.1.2" to clipboard
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 / appendAssistantText take delta: true and append a chunk with no newline of its own; the next write that does not continue the stream closes the open line first. LlmLiveTrailSession passes 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 fixture extension_streamed.md, recorded from the extension's writer.

0.1.1 #

Documentation #

  • LlmSessionBusyException says 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 was tom_core_llm in tom_ai/core before 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. LlmProvider with run(LlmRequest) as a stream of LlmEvents and complete derived from it, capabilities, availability with a reason, trails and a refusing embed; LlmUnavailableProvider for a build with no AI.
  • The request. WirePrompt (two channels, anchor hash, role as purpose), LlmOptions, LlmContextSummary, LlmToolBinding with LlmToolAnswer, ToolCatalogue and ToolDescriptor.
  • The run. The closed LlmEvent union, ended by LlmRunCompleted (with its LlmCallReport) or LlmRunFailed (with its LlmFailure); LlmRunAccount, which ends a run from its own events; llmRunPrelude, llmAnswerText, llmReportOf; LlmTransportException and LlmErrorKind.
  • Sessions and trails. LlmTrails, LlmTrailRecord, LlmSessionRegistry, llmSessionFor; the trail fold llmTrailEntries; LlmTrailFileWriter with the live-trail and summary-trail formats of the VS Code extension, over an LlmTrailMedium and an LlmTrailLog.
  • The Node search. llmDiscoverNode and its report; the machine half, LlmProcessNodeHost and llmNodeResolverFor, behind io.dart.
0
likes
150
points
562
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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, sessions, the trail fold, the live-trail and summary-trail files, and Node runtime discovery for agent servers. Depends on no other Tom package, so every graph can take it.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

meta, path

More

Packages that depend on tom_llm