You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 542be39
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/GMI.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -106,15 +106,16 @@ Every profile keeps the reasoning trace. Sentiment tracking scores each user tur
106
106
107
107
| Persona field | From |
108
108
|---|---|
109
-
|`id`, `name`, `description`| A slug of `name` (an id of its own for an agent with no name); `name`, or `Agent`; the first line of `instructions`, or the name |
110
-
|`baseSystemPrompt`| The system prompt `agent()` sends ([`buildSystemPrompt()`](https://github.com/framerslab/agentos/blob/master/src/api/agent.ts): the soul file's body and style, `instructions`, the name line, the personality description, `skills`), or the joined `systemBlocks`; with `learning` on, without the personality description, which a GMI given a learner session (`GMIBaseConfig.learning`) sends as a system prompt of its own on each turn the session prepares, and renders itself from the persona's traits (`GMIBaseConfig.personaTraits`) on a turn it does not, as `gmi()` gives its GMIs both; a host that builds a GMI from this persona gives it both for the section on every turn, and a GMI with neither sends none ([Learning](#learning)) |
111
-
|`personalityTraits`|`personality`, as HEXACO traits |
109
+
|`id`, `name`, `description`| With a soul: the soul's `agentId`, else the slug of its `name`, else a slug of the agent's `name` (an id derived from the soul's text when it has none of these); `name`, else the soul's `name`, else `Agent`; the soul's `role`, else the first line of `instructions`, else the name. With no soul: a slug of `name` (an id of its own for an agent with no name); `name`, or `Agent`; the first line of `instructions`, or the name |
110
+
|`baseSystemPrompt`| The system prompt `agent()` sends ([`buildSystemPrompt()`](https://github.com/framerslab/agentos/blob/master/src/api/agent.ts): the soul file's body and style, `instructions`, the name line, the personality description, `skills`), or the joined `systemBlocks`; with `learning` on or a persona that has traits, without the personality description, which a GMI given a learner session (`GMIBaseConfig.learning`) sends as a system prompt of its own on each turn the session prepares, and renders itself from the persona's traits (`GMIBaseConfig.personaTraits`) on a turn it does not, as `gmi()` gives its GMIs both; a host that builds a GMI from this persona gives it both for the section on every turn, and a GMI with neither sends none ([Learning](#learning)) |
111
+
|`personalityTraits`|`personality`, else the soul's `hexaco`, as HEXACO traits |
112
+
|`hardLimits`, `moodAdaptation`, `reasoningTraceConfig`, `metadata`| The soul's `hardLimits`, `defaultMood` and `allowedMoods`, `reasoningTrace` and `metadata`; a front matter `voice` or `avatar` is left out with one `soul.field_ignored` log line |
112
113
|`defaultProviderId`, `defaultModelId`|`provider` and `model`, resolved as `generateText()` resolves them |
113
114
|`defaultModelCompletionOptions`|`maxTokens` (or `controls.maxTotalTokens`), `controls.maxDurationMs` as `requestTimeout`, `thinking`, `effort`, `customModelParams`, `cache`; nothing else, so the provider's default temperature applies ([Completion options](#completion-options)) |
114
115
|`allowedCapabilities`| The `requiredCapabilities` of the agent's tools |
115
116
|`sentimentTracking`, `metaPrompts`| The profile |
116
117
117
-
A soul file's front matter is not applied, and the persona carries no `hardLimits`, so the "Hard limits" block ([Guardrails](./safety/GUARDRAILS_USAGE.md#hard-limits-in-the-persona)) is not in this path's prompt. What a soul gives each path (the prompt, the memory index, the front matter, recall, the `read_memory_page` tool and the wiki compile) is tabled in [Soul Files](./SOUL_FILES.md#what-applies-on-each-path). The chain-of-thought instruction (`chainOfThought`, on by default) goes first in the system prompt of each model call that offers tools, as `generateText()` puts it; a structured send's calls offer no tools and carry no such instruction, nor do the calls of a seat's turn whose tool names leave none. `onBeforeGeneration` receives the tool definitions the call offers: none on a structured send's calls, and on a seat's turn only the tools its tool names allow.
118
+
A soul file's front matter is applied through the loader's one mapping, so the "Hard limits" block ([Guardrails](./safety/GUARDRAILS_USAGE.md#hard-limits-in-the-persona)) closes this path's prompt, after `systemBlocks` text too. Guardrails, RAG and approval settings are accepted and not applied on this path, with one warning line at construction. What a soul gives each path (the prompt, the memory index, the front matter, recall, the `read_memory_page` tool and the wiki compile) is tabled in [Soul Files](./SOUL_FILES.md#what-applies-on-each-path). The chain-of-thought instruction (`chainOfThought`, on by default) goes first in the system prompt of each model call that offers tools, as `generateText()` puts it; a structured send's calls offer no tools and carry no such instruction, nor do the calls of a seat's turn whose tool names leave none. `onBeforeGeneration` receives the tool definitions the call offers: none on a structured send's calls, and on a seat's turn only the tools its tool names allow.
118
119
119
120
**Tools and model calls.** The agent's `tools` run through a tool orchestrator of the agent's own, with capability checks off; the built-in `getCurrentDateTime` tool is left out, so an agent without tools offers the model none. `maxSteps` (5 by default) is each turn's tool-loop limit. Each GMI calls the model through a [completion gateway](#model-calls-through-a-completion-gateway) built from `apiKey`, `baseUrl`, `fallbackProviders`, `policyTier`, `router`, `routerParams` and `hostPolicy`, and the agent's `onFallback(error, provider)` is called on each fallback. The fallback guarantee is the gateway's: a hop that cannot start, or an attempt that fails with a retryable error before any output, moves to the next hop, and a step that has streamed output ends the turn when it fails. The metaprompts call the persona's model and find a provider only when the persona's provider served the turn; they have no fallback of their own.
0 commit comments