Documentation
¶
Overview ¶
Package tinio is what every person shares, built into the binary: the config, the prompts, the question sets, and the characters to start from. So the binary alone, with a person's DATABASE_URL and TINIO_KEY, runs them.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Files fs.FS = files{}
Files is the shared files, a file or folder on disk (relative to where it runs) in place of the built-in one at the same path, so they can be changed without a rebuild. A path that is absolute or leaves the folder (..) is only ever on disk.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
tinio
command
Command tinio runs the agent.
|
Command tinio runs the agent. |
|
internal
|
|
|
ability
Package ability is what the agent can do beyond writing from what it already knows.
|
Package ability is what the agent can do beyond writing from what it already knows. |
|
ability/journal
Package journal is the agent writing its journal at night: a short, honest look back at its day, from what it planned, how that went and what it made.
|
Package journal is the agent writing its journal at night: a short, honest look back at its day, from what it planned, how that went and what it made. |
|
ability/reading
Package reading is the agent reading books a passage a sitting over many days, and Wikipedia articles at once.
|
Package reading is the agent reading books a passage a sitting over many days, and Wikipedia articles at once. |
|
ability/web
Package web is the agent searching and reading the open web, within a daily cap.
|
Package web is the agent searching and reading the open web, within a daily cap. |
|
action
Package action is the autonomy gate: what the agent may do on its own.
|
Package action is the autonomy gate: what the agent may do on its own. |
|
agent
Package person is someone as their database holds them: their life, how they live, their owner's judgment, their skills and their secrets.
|
Package person is someone as their database holds them: their life, how they live, their owner's judgment, their skills and their secrets. |
|
agentskill
Package agentskill loads know-how in the Agent Skills format: a folder with a SKILL.md (YAML frontmatter with a name and a description, then the instructions in Markdown) and any files it points to.
|
Package agentskill loads know-how in the Agent Skills format: a folder with a SKILL.md (YAML frontmatter with a name and a description, then the instructions in Markdown) and any files it points to. |
|
channel/telegram
Package telegram connects the agent to people through a Telegram bot.
|
Package telegram connects the agent to people through a Telegram bot. |
|
character
Package self loads the agent's life story: who it is, written by its creator.
|
Package self loads the agent's life story: who it is, written by its creator. |
|
config
Package config loads the agent's YAML configuration.
|
Package config loads the agent's YAML configuration. |
|
console
Package console is the owner's mind console: a private live web view of everything about the agent.
|
Package console is the owner's mind console: a private live web view of everything about the agent. |
|
decision
Package decision defines the Decision record: every non-trivial choice the agent makes.
|
Package decision defines the Decision record: every non-trivial choice the agent makes. |
|
decision/questions
Package questions loads question sets: versioned System 1 questions plus the thresholds the router uses, kept as data in decisions/*.yaml.
|
Package questions loads question sets: versioned System 1 questions plus the thresholds the router uses, kept as data in decisions/*.yaml. |
|
library
Package library is where the agent reads: public-domain books from Project Gutenberg (found through its own OPDS search) and articles from Wikipedia.
|
Package library is where the agent reads: public-domain books from Project Gutenberg (found through its own OPDS search) and articles from Wikipedia. |
|
memory
Package memory holds what the agent remembers: conversations, facts, the people it knows, and what it means to do.
|
Package memory holds what the agent remembers: conversations, facts, the people it knows, and what it means to do. |
|
mind
Package mind runs the cognitive cycle: take a percept, decide, act, record.
|
Package mind runs the cognitive cycle: take a percept, decide, act, record. |
|
perception
Package perception defines what the agent perceives from the world.
|
Package perception defines what the agent perceives from the world. |
|
portfolio
Package portfolio is the agent's public profile page.
|
Package portfolio is the agent's public profile page. |
|
pricing
Package pricing turns token usage into a recorded cost.
|
Package pricing turns token usage into a recorded cost. |
|
providers/embed
Package embed turns text into vectors whose closeness is closeness of meaning, so the agent can find the decisions most like the one it faces.
|
Package embed turns text into vectors whose closeness is closeness of meaning, so the agent can find the decisions most like the one it faces. |
|
providers/embed/openai
Package openai is the embedding provider for OpenAI's Embeddings API.
|
Package openai is the embedding provider for OpenAI's Embeddings API. |
|
providers/openaiclient
Package openaiclient makes the OpenAI client every OpenAI provider shares, with a timeout per attempt and the SDK's own retries (honouring Retry-After).
|
Package openaiclient makes the OpenAI client every OpenAI provider shares, with a timeout per attempt and the SDK's own retries (honouring Retry-After). |
|
providers/system1
Package system1 defines the provider-neutral interface to fast decision models.
|
Package system1 defines the provider-neutral interface to fast decision models. |
|
providers/system1/openai
Package openai is the System 1 provider for OpenAI's Decisions API.
|
Package openai is the System 1 provider for OpenAI's Decisions API. |
|
providers/system2
Package system2 defines the provider-neutral interface to slow, deliberate reasoning models.
|
Package system2 defines the provider-neutral interface to slow, deliberate reasoning models. |
|
providers/system2/openai
Package openai is the System 2 provider for OpenAI's Responses API.
|
Package openai is the System 2 provider for OpenAI's Responses API. |
|
render
Package render turns a work into a file to send.
|
Package render turns a work into a file to send. |
|
render/archive
Package archive is data a work carries: files with their paths, like the code of a small program, made into a zip.
|
Package archive is data a work carries: files with their paths, like the code of a small program, made into a zip. |
|
render/calendar
Package calendar is data a work carries: dated events, made into an iCalendar (.ics) file that adds them to any calendar app.
|
Package calendar is data a work carries: dated events, made into an iCalendar (.ics) file that adds them to any calendar app. |
|
render/docx
Package docx writes a work's words as a Word document, laid out from its Markdown with Word's own styles (Title, Heading 1 to 9, lists, Quote, tables), so it can be edited as one.
|
Package docx writes a work's words as a Word document, laid out from its Markdown with Word's own styles (Title, Heading 1 to 9, lists, Quote, tables), so it can be edited as one. |
|
render/markdown
Package markdown reads a work's words as Markdown into a flat list of blocks for a format to lay out.
|
Package markdown reads a work's words as Markdown into a flat list of blocks for a format to lay out. |
|
render/midi
Package midi writes a score (tracks of notes, placed by bar and beat) as a standard MIDI file that any DAW opens.
|
Package midi writes a score (tracks of notes, placed by bar and beat) as a standard MIDI file that any DAW opens. |
|
render/pdf
Package pdf lays a piece of writing out as an A4 PDF: its title, then its text read as Markdown (render/markdown).
|
Package pdf lays a piece of writing out as an A4 PDF: its title, then its text read as Markdown (render/markdown). |
|
render/table
Package table is data a work carries: a table of rows and columns, made into a spreadsheet (XLSX) or a CSV file.
|
Package table is data a work carries: a table of rows and columns, made into a spreadsheet (XLSX) or a CSV file. |
|
replay
Package replay re-asks System 1 about messages the owner labelled with the question set as it is now, so a change can be checked before it is trusted.
|
Package replay re-asks System 1 about messages the owner labelled with the question set as it is now, so a change can be checked before it is trusted. |
|
search
Package search is the agent on the open web: finding pages (Searcher) and reading them (Fetcher).
|
Package search is the agent on the open web: finding pages (Searcher) and reading them (Fetcher). |
|
secret
Package secret seals a person's secrets before they reach their database, with a key kept outside it (TINIO_KEY): a copy of the database alone holds nothing that works.
|
Package secret seals a person's secrets before they reach their database, with a key kept outside it (TINIO_KEY): a copy of the database alone holds nothing that works. |
|
setup
Package setup is `tinio new`: it raises an agent from one of the characters in characters/, in their own database.
|
Package setup is `tinio new`: it raises an agent from one of the characters in characters/, in their own database. |
|
store
Package store persists percepts, decisions and memory in PostgreSQL.
|
Package store persists percepts, decisions and memory in PostgreSQL. |
|
tools
Package tools connects to MCP servers and offers the tools the config lists as abilities.
|
Package tools connects to MCP servers and offers the tools the config lists as abilities. |