Conversation
pkg/provider holds the model-neutral message types plus two streaming
backends: the Anthropic Messages API and the OpenAI chat completions
dialect, which covers local llama.cpp, ollama, vllm, and most gateways
through base_url. pkg/agent runs the turn loop: stream the reply, run
whatever tools the model called, feed results back, repeat until
end_turn or the turn cap.
Config is one YAML file at ~/.tomo/config.yaml with ${ENV} expansion
so keys stay out of the file. Models are named provider/model against
the configured providers.
tomo chat is a streaming REPL over all of it. Tools exist as a typed
registry with capability classes (read, net, write, exec); the builtin
set and the policy gate land next.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
One binary that holds a streaming, tool-capable conversation with any model from the terminal.
Tested against fixture SSE streams for both dialects and a scripted provider for the loop.