@lumavox/server 0.49.1 → 0.51.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1965,6 +1965,54 @@ export type AgentSummary = {
1965
1965
  * What the agent says when the model provider's own safety filter holds a reply back, in place of it: one line in the agent's voice, such as "Hmm, let's talk about something else!" — 1 to 300 characters, at any `age_level`. It is said and spoken as any reply, and the turn ends with `turn.done`; a reply held back part-way keeps what it had said, less the sentence it was writing. **Unset, a held-back reply ends with an `error` (`provider_failed`) and `interrupted`**, as before. Never for the opening line. Recommended for `kids` and `teens`, whose filters are stricter.
1966
1966
  */
1967
1967
  fallback_message: string | null;
1968
+ /**
1969
+ * Whether the agent plays a character or is an assistant. `character` (the default, and what unset means) opens its instructions with "You are playing a character… Stay in character", for a companion, a game's character or a tutor with a persona. `assistant` opens them as an assistant helping the user, for a support desk or a helper, which then has no character to stay in. The rest of its instructions are the same either way. Always answered: `character` for an agent that set none.
1970
+ */
1971
+ role: 'character' | 'assistant';
1972
+ /**
1973
+ * The language the agent replies in, as a tag — `es`, `pt-BR` — whatever language the person writes in: told to the model, spoken by the voice where `voice_config` names no `language` of its own, and the hint its hearing transcribes with (the language alone, `pt` of `pt-BR`) where `stt_config` names none. **A conversation whose key names a `language` uses that instead.** Unset, the agent answers in the language it is spoken to in.
1974
+ */
1975
+ language: string | null;
1976
+ /**
1977
+ * Lines in the agent's voice, to show the model how it talks — its manner, not lines to repeat: at most 20, of 500 characters each, each read as one line. Part of its instructions on every turn, so they are prompt tokens on every reply. Always answered: `[]` for none.
1978
+ */
1979
+ example_lines: Array<string>;
1980
+ /**
1981
+ * Opening lines the agent picks one of at random each time it greets — or, with `first_message_generated` on, directions it picks one of to write one by: at most 10, of 1000 characters each. **When it lists any, `first_message` is not used.** A key's own `first_message` is still said in place of them. Always answered: `[]` for none.
1982
+ */
1983
+ first_messages: Array<string>;
1984
+ /**
1985
+ * How random the replies are, 0 to 2. **Sent only to a model that still reads it: `gemini-3.1-flash-lite`.** Google ignores it on its newer models and asks for it to be left out, so for any other model it is kept and not sent. Google recommends leaving it unset on its Gemini 3 models, where a lower temperature can make replies loop. Unset sends none, so the model's own default applies.
1986
+ */
1987
+ temperature: number | null;
1988
+ /**
1989
+ * How much of the likeliest words the model picks from, by their total probability, 0 to 1. **Sent only to a model that still reads it: `gemini-3.1-flash-lite`.** Google ignores it on its newer models and asks for it to be left out, so for any other model it is kept and not sent. Google recommends leaving it unset on its Gemini 3 models, where a lower temperature can make replies loop. Unset sends none, so the model's own default applies.
1990
+ */
1991
+ top_p: number | null;
1992
+ /**
1993
+ * How many of the likeliest words the model picks from, 1 to 1,000. **Sent only to a model that still reads it: `gemini-3.1-flash-lite`.** Google ignores it on its newer models and asks for it to be left out, so for any other model it is kept and not sent. Google recommends leaving it unset on its Gemini 3 models, where a lower temperature can make replies loop. Unset sends none, so the model's own default applies.
1994
+ */
1995
+ top_k: number | null;
1996
+ /**
1997
+ * How much the model avoids a word it has already used, however often: from -2 up to 2, positive avoiding it. Unset sends none, so the model's own default applies.
1998
+ */
1999
+ presence_penalty: number | null;
2000
+ /**
2001
+ * How much the model avoids a word by how often it has used it: from -2 up to 2, positive avoiding it. A large negative value can make it repeat a word until the reply's cap. Unset sends none.
2002
+ */
2003
+ frequency_penalty: number | null;
2004
+ /**
2005
+ * The same seed makes the same request answer more alike — useful when testing an agent. Never a guarantee. Unset is a new one each time.
2006
+ */
2007
+ seed: number | null;
2008
+ /**
2009
+ * Where the model stops writing a reply: at the first of these it writes, which is left out. Always answered: `[]` for none.
2010
+ */
2011
+ stop_sequences: Array<string>;
2012
+ /**
2013
+ * The platform's own tools this agent is not offered, while the feature each belongs to stays on: `search_knowledge` (its knowledge is still looked up before replies when `knowledge_lookup_first` is on), `forget_fact` (it cannot forget a fact when asked), `remember_conversation` (memories are still read from its conversations), `search_memories` (it knows a topic by its line alone) and `remember_relation` (the relationship stays as it is, and is still told to it). `hand_off` and `schedule_message` have switches of their own: `handoffs` and `outreach_tool`. Always answered: `[]` for none.
2014
+ */
2015
+ tools_off: Array<'search_knowledge' | 'forget_fact' | 'remember_conversation' | 'search_memories' | 'remember_relation'>;
1968
2016
  /**
1969
2017
  * Other agents of yours this one may pass the conversation to, each with when: the agent is offered a tool to hand off, and the agent it hands to answers the person's last message and carries the conversation on, with its own instructions, voice, knowledge and tools. At most 10. `[]` for none. A target deleted since is gone from the list.
1970
2018
  */
@@ -2218,15 +2266,17 @@ export type AgentSummary = {
2218
2266
  */
2219
2267
  voice_enabled: boolean;
2220
2268
  /**
2221
- * The sections of this agent's settings it takes from your organisation's `agent_defaults` (`GET /v1/agents/settings`) instead of its own: the complete list, `null` or `[]` for none.
2269
+ * The settings this agent takes from your organisation's `agent_defaults` (`GET /v1/agents/settings`) instead of its own, by field name: the complete list, `null` or `[]` for none.
2222
2270
  *
2223
- * A new agent follows every section you did not set when you made it. An agent made before this existed follows none until you say so.
2271
+ * Each setting is followed on its own, except a model call's, which only work together and are followed as one: `model` with `thinking_level`, `thinking_summaries`, `max_output_tokens`, `temperature`, `top_p`, `top_k`, `presence_penalty`, `frequency_penalty`, `seed` and `stop_sequences`; and for each of `compact`, `fact`, `memory` and `report`, its `_model`, `_thinking_level` and `_max_output_tokens`.
2224
2272
  *
2225
- * Sending a value that differs from what a followed section runs with customises that section: the organisation's values are copied onto the agent and your change laid over them. Sending the value it already runs with changes nothing. Naming a section here and sending a different value for one of its fields in the same request is a 422.
2273
+ * A new agent follows every setting you did not set when you made it. An agent made before this existed follows none until you say so.
2226
2274
  *
2227
- * Every field of a followed section is answered as the agent runs it. Always answered: `[]` for none.
2275
+ * Sending a value that differs from what a followed setting runs with customises that setting, or its set: the organisation's values are copied onto the agent and your change laid over them, and the rest keep following. Sending the value it already runs with changes nothing. Naming a field here and sending a different value for it in the same request is a 422.
2276
+ *
2277
+ * Answered field by field, a set's every field, each answered as the agent runs it. Always answered: `[]` for none.
2228
2278
  */
2229
- org_defaults: Array<'model' | 'voice' | 'hearing' | 'emotion' | 'relationship' | 'knowledge' | 'builtin_tools' | 'compaction' | 'facts' | 'memories' | 'reports' | 'outreach' | 'safety'>;
2279
+ org_defaults: Array<'model' | 'thinking_level' | 'thinking_summaries' | 'max_output_tokens' | 'temperature' | 'top_p' | 'top_k' | 'presence_penalty' | 'frequency_penalty' | 'seed' | 'stop_sequences' | 'language' | 'voice_enabled' | 'voice_config' | 'stream_chunk_schedule' | 'stt_config' | 'emotion_enabled' | 'emotion_instruction' | 'relation_enabled' | 'relation_instruction' | 'knowledge_enabled' | 'knowledge_mode' | 'knowledge_lookup_first' | 'knowledge_max_results' | 'url_context' | 'code_execution' | 'tools_off' | 'compact_threshold_tokens' | 'compact_instruction' | 'compact_model' | 'compact_thinking_level' | 'compact_max_output_tokens' | 'fact_instruction' | 'fact_model' | 'fact_thinking_level' | 'fact_max_output_tokens' | 'max_facts' | 'facts_enabled' | 'facts_scope' | 'memories_enabled' | 'memories_scope' | 'memory_model' | 'memory_thinking_level' | 'memory_max_output_tokens' | 'memory_instruction' | 'memory_categories' | 'report_enabled' | 'report_fields' | 'report_success' | 'report_instruction' | 'report_model' | 'report_thinking_level' | 'report_max_output_tokens' | 'report_transcript' | 'outreach_enabled' | 'outreach_quiet_hours' | 'outreach_time_zone' | 'outreach_tool' | 'guardrails' | 'age_level' | 'blocked_topics' | 'fallback_message'>;
2230
2280
  id: string;
2231
2281
  created_at: string;
2232
2282
  updated_at: string;
@@ -2390,6 +2440,54 @@ export type AgentInfo = {
2390
2440
  * What the agent says when the model provider's own safety filter holds a reply back, in place of it: one line in the agent's voice, such as "Hmm, let's talk about something else!" — 1 to 300 characters, at any `age_level`. It is said and spoken as any reply, and the turn ends with `turn.done`; a reply held back part-way keeps what it had said, less the sentence it was writing. **Unset, a held-back reply ends with an `error` (`provider_failed`) and `interrupted`**, as before. Never for the opening line. Recommended for `kids` and `teens`, whose filters are stricter.
2391
2441
  */
2392
2442
  fallback_message: string | null;
2443
+ /**
2444
+ * Whether the agent plays a character or is an assistant. `character` (the default, and what unset means) opens its instructions with "You are playing a character… Stay in character", for a companion, a game's character or a tutor with a persona. `assistant` opens them as an assistant helping the user, for a support desk or a helper, which then has no character to stay in. The rest of its instructions are the same either way. Always answered: `character` for an agent that set none.
2445
+ */
2446
+ role: 'character' | 'assistant';
2447
+ /**
2448
+ * The language the agent replies in, as a tag — `es`, `pt-BR` — whatever language the person writes in: told to the model, spoken by the voice where `voice_config` names no `language` of its own, and the hint its hearing transcribes with (the language alone, `pt` of `pt-BR`) where `stt_config` names none. **A conversation whose key names a `language` uses that instead.** Unset, the agent answers in the language it is spoken to in.
2449
+ */
2450
+ language: string | null;
2451
+ /**
2452
+ * Lines in the agent's voice, to show the model how it talks — its manner, not lines to repeat: at most 20, of 500 characters each, each read as one line. Part of its instructions on every turn, so they are prompt tokens on every reply. Always answered: `[]` for none.
2453
+ */
2454
+ example_lines: Array<string>;
2455
+ /**
2456
+ * Opening lines the agent picks one of at random each time it greets — or, with `first_message_generated` on, directions it picks one of to write one by: at most 10, of 1000 characters each. **When it lists any, `first_message` is not used.** A key's own `first_message` is still said in place of them. Always answered: `[]` for none.
2457
+ */
2458
+ first_messages: Array<string>;
2459
+ /**
2460
+ * How random the replies are, 0 to 2. **Sent only to a model that still reads it: `gemini-3.1-flash-lite`.** Google ignores it on its newer models and asks for it to be left out, so for any other model it is kept and not sent. Google recommends leaving it unset on its Gemini 3 models, where a lower temperature can make replies loop. Unset sends none, so the model's own default applies.
2461
+ */
2462
+ temperature: number | null;
2463
+ /**
2464
+ * How much of the likeliest words the model picks from, by their total probability, 0 to 1. **Sent only to a model that still reads it: `gemini-3.1-flash-lite`.** Google ignores it on its newer models and asks for it to be left out, so for any other model it is kept and not sent. Google recommends leaving it unset on its Gemini 3 models, where a lower temperature can make replies loop. Unset sends none, so the model's own default applies.
2465
+ */
2466
+ top_p: number | null;
2467
+ /**
2468
+ * How many of the likeliest words the model picks from, 1 to 1,000. **Sent only to a model that still reads it: `gemini-3.1-flash-lite`.** Google ignores it on its newer models and asks for it to be left out, so for any other model it is kept and not sent. Google recommends leaving it unset on its Gemini 3 models, where a lower temperature can make replies loop. Unset sends none, so the model's own default applies.
2469
+ */
2470
+ top_k: number | null;
2471
+ /**
2472
+ * How much the model avoids a word it has already used, however often: from -2 up to 2, positive avoiding it. Unset sends none, so the model's own default applies.
2473
+ */
2474
+ presence_penalty: number | null;
2475
+ /**
2476
+ * How much the model avoids a word by how often it has used it: from -2 up to 2, positive avoiding it. A large negative value can make it repeat a word until the reply's cap. Unset sends none.
2477
+ */
2478
+ frequency_penalty: number | null;
2479
+ /**
2480
+ * The same seed makes the same request answer more alike — useful when testing an agent. Never a guarantee. Unset is a new one each time.
2481
+ */
2482
+ seed: number | null;
2483
+ /**
2484
+ * Where the model stops writing a reply: at the first of these it writes, which is left out. Always answered: `[]` for none.
2485
+ */
2486
+ stop_sequences: Array<string>;
2487
+ /**
2488
+ * The platform's own tools this agent is not offered, while the feature each belongs to stays on: `search_knowledge` (its knowledge is still looked up before replies when `knowledge_lookup_first` is on), `forget_fact` (it cannot forget a fact when asked), `remember_conversation` (memories are still read from its conversations), `search_memories` (it knows a topic by its line alone) and `remember_relation` (the relationship stays as it is, and is still told to it). `hand_off` and `schedule_message` have switches of their own: `handoffs` and `outreach_tool`. Always answered: `[]` for none.
2489
+ */
2490
+ tools_off: Array<'search_knowledge' | 'forget_fact' | 'remember_conversation' | 'search_memories' | 'remember_relation'>;
2393
2491
  /**
2394
2492
  * Other agents of yours this one may pass the conversation to, each with when: the agent is offered a tool to hand off, and the agent it hands to answers the person's last message and carries the conversation on, with its own instructions, voice, knowledge and tools. At most 10. `[]` for none. A target deleted since is gone from the list.
2395
2493
  */
@@ -2643,15 +2741,17 @@ export type AgentInfo = {
2643
2741
  */
2644
2742
  voice_enabled: boolean;
2645
2743
  /**
2646
- * The sections of this agent's settings it takes from your organisation's `agent_defaults` (`GET /v1/agents/settings`) instead of its own: the complete list, `null` or `[]` for none.
2744
+ * The settings this agent takes from your organisation's `agent_defaults` (`GET /v1/agents/settings`) instead of its own, by field name: the complete list, `null` or `[]` for none.
2745
+ *
2746
+ * Each setting is followed on its own, except a model call's, which only work together and are followed as one: `model` with `thinking_level`, `thinking_summaries`, `max_output_tokens`, `temperature`, `top_p`, `top_k`, `presence_penalty`, `frequency_penalty`, `seed` and `stop_sequences`; and for each of `compact`, `fact`, `memory` and `report`, its `_model`, `_thinking_level` and `_max_output_tokens`.
2647
2747
  *
2648
- * A new agent follows every section you did not set when you made it. An agent made before this existed follows none until you say so.
2748
+ * A new agent follows every setting you did not set when you made it. An agent made before this existed follows none until you say so.
2649
2749
  *
2650
- * Sending a value that differs from what a followed section runs with customises that section: the organisation's values are copied onto the agent and your change laid over them. Sending the value it already runs with changes nothing. Naming a section here and sending a different value for one of its fields in the same request is a 422.
2750
+ * Sending a value that differs from what a followed setting runs with customises that setting, or its set: the organisation's values are copied onto the agent and your change laid over them, and the rest keep following. Sending the value it already runs with changes nothing. Naming a field here and sending a different value for it in the same request is a 422.
2651
2751
  *
2652
- * Every field of a followed section is answered as the agent runs it. Always answered: `[]` for none.
2752
+ * Answered field by field, a set's every field, each answered as the agent runs it. Always answered: `[]` for none.
2653
2753
  */
2654
- org_defaults: Array<'model' | 'voice' | 'hearing' | 'emotion' | 'relationship' | 'knowledge' | 'builtin_tools' | 'compaction' | 'facts' | 'memories' | 'reports' | 'outreach' | 'safety'>;
2754
+ org_defaults: Array<'model' | 'thinking_level' | 'thinking_summaries' | 'max_output_tokens' | 'temperature' | 'top_p' | 'top_k' | 'presence_penalty' | 'frequency_penalty' | 'seed' | 'stop_sequences' | 'language' | 'voice_enabled' | 'voice_config' | 'stream_chunk_schedule' | 'stt_config' | 'emotion_enabled' | 'emotion_instruction' | 'relation_enabled' | 'relation_instruction' | 'knowledge_enabled' | 'knowledge_mode' | 'knowledge_lookup_first' | 'knowledge_max_results' | 'url_context' | 'code_execution' | 'tools_off' | 'compact_threshold_tokens' | 'compact_instruction' | 'compact_model' | 'compact_thinking_level' | 'compact_max_output_tokens' | 'fact_instruction' | 'fact_model' | 'fact_thinking_level' | 'fact_max_output_tokens' | 'max_facts' | 'facts_enabled' | 'facts_scope' | 'memories_enabled' | 'memories_scope' | 'memory_model' | 'memory_thinking_level' | 'memory_max_output_tokens' | 'memory_instruction' | 'memory_categories' | 'report_enabled' | 'report_fields' | 'report_success' | 'report_instruction' | 'report_model' | 'report_thinking_level' | 'report_max_output_tokens' | 'report_transcript' | 'outreach_enabled' | 'outreach_quiet_hours' | 'outreach_time_zone' | 'outreach_tool' | 'guardrails' | 'age_level' | 'blocked_topics' | 'fallback_message'>;
2655
2755
  id: string;
2656
2756
  created_at: string;
2657
2757
  updated_at: string;
@@ -2713,6 +2813,54 @@ export type AgentCreateRequest = {
2713
2813
  * What the agent says when the model provider's own safety filter holds a reply back, in place of it: one line in the agent's voice, such as "Hmm, let's talk about something else!" — 1 to 300 characters, at any `age_level`. It is said and spoken as any reply, and the turn ends with `turn.done`; a reply held back part-way keeps what it had said, less the sentence it was writing. **Unset, a held-back reply ends with an `error` (`provider_failed`) and `interrupted`**, as before. Never for the opening line. Recommended for `kids` and `teens`, whose filters are stricter.
2714
2814
  */
2715
2815
  fallback_message?: string | null;
2816
+ /**
2817
+ * Whether the agent plays a character or is an assistant. `character` (the default, and what unset means) opens its instructions with "You are playing a character… Stay in character", for a companion, a game's character or a tutor with a persona. `assistant` opens them as an assistant helping the user, for a support desk or a helper, which then has no character to stay in. The rest of its instructions are the same either way.
2818
+ */
2819
+ role?: 'character' | 'assistant' | null;
2820
+ /**
2821
+ * The language the agent replies in, as a tag — `es`, `pt-BR` — whatever language the person writes in: told to the model, spoken by the voice where `voice_config` names no `language` of its own, and the hint its hearing transcribes with (the language alone, `pt` of `pt-BR`) where `stt_config` names none. **A conversation whose key names a `language` uses that instead.** Unset, the agent answers in the language it is spoken to in.
2822
+ */
2823
+ language?: string | null;
2824
+ /**
2825
+ * Lines in the agent's voice, to show the model how it talks — its manner, not lines to repeat: at most 20, of 500 characters each, each read as one line. Part of its instructions on every turn, so they are prompt tokens on every reply. The complete list: `null` or `[]` clears it.
2826
+ */
2827
+ example_lines?: Array<string> | null;
2828
+ /**
2829
+ * Opening lines the agent picks one of at random each time it greets — or, with `first_message_generated` on, directions it picks one of to write one by: at most 10, of 1000 characters each. **When it lists any, `first_message` is not used.** A key's own `first_message` is still said in place of them. The complete list: `null` or `[]` clears it.
2830
+ */
2831
+ first_messages?: Array<string> | null;
2832
+ /**
2833
+ * How random the replies are, 0 to 2. **Sent only to a model that still reads it: `gemini-3.1-flash-lite`.** Google ignores it on its newer models and asks for it to be left out, so for any other model it is kept and not sent. Google recommends leaving it unset on its Gemini 3 models, where a lower temperature can make replies loop. Unset sends none, so the model's own default applies.
2834
+ */
2835
+ temperature?: number | null;
2836
+ /**
2837
+ * How much of the likeliest words the model picks from, by their total probability, 0 to 1. **Sent only to a model that still reads it: `gemini-3.1-flash-lite`.** Google ignores it on its newer models and asks for it to be left out, so for any other model it is kept and not sent. Google recommends leaving it unset on its Gemini 3 models, where a lower temperature can make replies loop. Unset sends none, so the model's own default applies.
2838
+ */
2839
+ top_p?: number | null;
2840
+ /**
2841
+ * How many of the likeliest words the model picks from, 1 to 1,000. **Sent only to a model that still reads it: `gemini-3.1-flash-lite`.** Google ignores it on its newer models and asks for it to be left out, so for any other model it is kept and not sent. Google recommends leaving it unset on its Gemini 3 models, where a lower temperature can make replies loop. Unset sends none, so the model's own default applies.
2842
+ */
2843
+ top_k?: number | null;
2844
+ /**
2845
+ * How much the model avoids a word it has already used, however often: from -2 up to 2, positive avoiding it. Unset sends none, so the model's own default applies.
2846
+ */
2847
+ presence_penalty?: number | null;
2848
+ /**
2849
+ * How much the model avoids a word by how often it has used it: from -2 up to 2, positive avoiding it. A large negative value can make it repeat a word until the reply's cap. Unset sends none.
2850
+ */
2851
+ frequency_penalty?: number | null;
2852
+ /**
2853
+ * The same seed makes the same request answer more alike — useful when testing an agent. Never a guarantee. Unset is a new one each time.
2854
+ */
2855
+ seed?: number | null;
2856
+ /**
2857
+ * Where the model stops writing a reply: at the first of these it writes, which is left out. At most 5, of 100 characters each. **One that could end a reply inside its mood line is refused** (422) — a mood opens a reply with `emotion_enabled` on, as `mood: happy 0.6` on a line of its own, so a newline, a space, a digit, `mood` or part of a mood's name would leave no reply. The complete list: `null` or `[]` clears it.
2858
+ */
2859
+ stop_sequences?: Array<string> | null;
2860
+ /**
2861
+ * The platform's own tools this agent is not offered, while the feature each belongs to stays on: `search_knowledge` (its knowledge is still looked up before replies when `knowledge_lookup_first` is on), `forget_fact` (it cannot forget a fact when asked), `remember_conversation` (memories are still read from its conversations), `search_memories` (it knows a topic by its line alone) and `remember_relation` (the relationship stays as it is, and is still told to it). `hand_off` and `schedule_message` have switches of their own: `handoffs` and `outreach_tool`. The complete list: `null` or `[]` clears it.
2862
+ */
2863
+ tools_off?: Array<'search_knowledge' | 'forget_fact' | 'remember_conversation' | 'search_memories' | 'remember_relation'> | null;
2716
2864
  /**
2717
2865
  * Other agents of yours this one may pass the conversation to, each with when: the agent is offered a tool to hand off, and the agent it hands to answers the person's last message and carries the conversation on, with its own instructions, voice, knowledge and tools. At most 10. The complete list, in order: `null` or `[]` clears it.
2718
2866
  */
@@ -2966,13 +3114,17 @@ export type AgentCreateRequest = {
2966
3114
  */
2967
3115
  voice_enabled?: boolean | null;
2968
3116
  /**
2969
- * The sections of this agent's settings it takes from your organisation's `agent_defaults` (`GET /v1/agents/settings`) instead of its own: the complete list, `null` or `[]` for none.
3117
+ * The settings this agent takes from your organisation's `agent_defaults` (`GET /v1/agents/settings`) instead of its own, by field name: the complete list, `null` or `[]` for none.
3118
+ *
3119
+ * Each setting is followed on its own, except a model call's, which only work together and are followed as one: `model` with `thinking_level`, `thinking_summaries`, `max_output_tokens`, `temperature`, `top_p`, `top_k`, `presence_penalty`, `frequency_penalty`, `seed` and `stop_sequences`; and for each of `compact`, `fact`, `memory` and `report`, its `_model`, `_thinking_level` and `_max_output_tokens`.
3120
+ *
3121
+ * A new agent follows every setting you did not set when you made it. An agent made before this existed follows none until you say so.
2970
3122
  *
2971
- * A new agent follows every section you did not set when you made it. An agent made before this existed follows none until you say so.
3123
+ * Sending a value that differs from what a followed setting runs with customises that setting, or its set: the organisation's values are copied onto the agent and your change laid over them, and the rest keep following. Sending the value it already runs with changes nothing. Naming a field here and sending a different value for it in the same request is a 422.
2972
3124
  *
2973
- * Sending a value that differs from what a followed section runs with customises that section: the organisation's values are copied onto the agent and your change laid over them. Sending the value it already runs with changes nothing. Naming a section here and sending a different value for one of its fields in the same request is a 422.
3125
+ * Naming one field of a set names all of it. A section's name — `voice`, `safety` and the rest of the console's tabs — stands for every field of it.
2974
3126
  */
2975
- org_defaults?: Array<'model' | 'voice' | 'hearing' | 'emotion' | 'relationship' | 'knowledge' | 'builtin_tools' | 'compaction' | 'facts' | 'memories' | 'reports' | 'outreach' | 'safety'> | null;
3127
+ org_defaults?: Array<'model' | 'thinking_level' | 'thinking_summaries' | 'max_output_tokens' | 'temperature' | 'top_p' | 'top_k' | 'presence_penalty' | 'frequency_penalty' | 'seed' | 'stop_sequences' | 'language' | 'voice_enabled' | 'voice_config' | 'stream_chunk_schedule' | 'stt_config' | 'emotion_enabled' | 'emotion_instruction' | 'relation_enabled' | 'relation_instruction' | 'knowledge_enabled' | 'knowledge_mode' | 'knowledge_lookup_first' | 'knowledge_max_results' | 'url_context' | 'code_execution' | 'tools_off' | 'compact_threshold_tokens' | 'compact_instruction' | 'compact_model' | 'compact_thinking_level' | 'compact_max_output_tokens' | 'fact_instruction' | 'fact_model' | 'fact_thinking_level' | 'fact_max_output_tokens' | 'max_facts' | 'facts_enabled' | 'facts_scope' | 'memories_enabled' | 'memories_scope' | 'memory_model' | 'memory_thinking_level' | 'memory_max_output_tokens' | 'memory_instruction' | 'memory_categories' | 'report_enabled' | 'report_fields' | 'report_success' | 'report_instruction' | 'report_model' | 'report_thinking_level' | 'report_max_output_tokens' | 'report_transcript' | 'outreach_enabled' | 'outreach_quiet_hours' | 'outreach_time_zone' | 'outreach_tool' | 'guardrails' | 'age_level' | 'blocked_topics' | 'fallback_message' | 'voice' | 'hearing' | 'emotion' | 'relationship' | 'knowledge' | 'builtin_tools' | 'compaction' | 'facts' | 'memories' | 'reports' | 'outreach' | 'safety'> | null;
2976
3128
  };
2977
3129
  export type AgentReportField = {
2978
3130
  /**
@@ -3127,9 +3279,9 @@ export type AgentSettingsInfo = {
3127
3279
  agents_following: AgentsFollowing;
3128
3280
  };
3129
3281
  /**
3130
- * What an agent following a section of `org_defaults` runs with, instead of its own. A field left unset is what a new agent has. The instructions and the chunk schedule are `default_*` beside this.
3282
+ * What an agent following a field of `org_defaults` runs with, instead of its own. A field left unset is what a new agent has. The instructions and the chunk schedule are `default_*` beside this.
3131
3283
  *
3132
- * **A change reaches every agent following that section at once**, with no draft to try it in, within about a minute.
3284
+ * **A change reaches every agent following that field at once**, with no draft to try it in, within about a minute.
3133
3285
  */
3134
3286
  export type AgentDefaults = {
3135
3287
  /**
@@ -3148,6 +3300,38 @@ export type AgentDefaults = {
3148
3300
  * Cap on reply length. Unset means the model's own limit.
3149
3301
  */
3150
3302
  max_output_tokens: number | null;
3303
+ /**
3304
+ * How random the replies are, 0 to 2. **Sent only to a model that still reads it: `gemini-3.1-flash-lite`.** Google ignores it on its newer models and asks for it to be left out, so for any other model it is kept and not sent. Google recommends leaving it unset on its Gemini 3 models, where a lower temperature can make replies loop. Unset sends none, so the model's own default applies.
3305
+ */
3306
+ temperature: number | null;
3307
+ /**
3308
+ * How much of the likeliest words the model picks from, by their total probability, 0 to 1. **Sent only to a model that still reads it: `gemini-3.1-flash-lite`.** Google ignores it on its newer models and asks for it to be left out, so for any other model it is kept and not sent. Google recommends leaving it unset on its Gemini 3 models, where a lower temperature can make replies loop. Unset sends none, so the model's own default applies.
3309
+ */
3310
+ top_p: number | null;
3311
+ /**
3312
+ * How many of the likeliest words the model picks from, 1 to 1,000. **Sent only to a model that still reads it: `gemini-3.1-flash-lite`.** Google ignores it on its newer models and asks for it to be left out, so for any other model it is kept and not sent. Google recommends leaving it unset on its Gemini 3 models, where a lower temperature can make replies loop. Unset sends none, so the model's own default applies.
3313
+ */
3314
+ top_k: number | null;
3315
+ /**
3316
+ * How much the model avoids a word it has already used, however often: from -2 up to 2, positive avoiding it. Unset sends none, so the model's own default applies.
3317
+ */
3318
+ presence_penalty: number | null;
3319
+ /**
3320
+ * How much the model avoids a word by how often it has used it: from -2 up to 2, positive avoiding it. A large negative value can make it repeat a word until the reply's cap. Unset sends none.
3321
+ */
3322
+ frequency_penalty: number | null;
3323
+ /**
3324
+ * The same seed makes the same request answer more alike — useful when testing an agent. Never a guarantee. Unset is a new one each time.
3325
+ */
3326
+ seed: number | null;
3327
+ /**
3328
+ * Where the model stops writing a reply: at the first of these it writes, which is left out. Always answered: `[]` for none.
3329
+ */
3330
+ stop_sequences: Array<string> | null;
3331
+ /**
3332
+ * The language the agent replies in, as a tag — `es`, `pt-BR` — whatever language the person writes in: told to the model, spoken by the voice where `voice_config` names no `language` of its own, and the hint its hearing transcribes with (the language alone, `pt` of `pt-BR`) where `stt_config` names none. **A conversation whose key names a `language` uses that instead.** Unset, the agent answers in the language it is spoken to in.
3333
+ */
3334
+ language: string | null;
3151
3335
  /**
3152
3336
  * Whether replies come back as audio as well as text.
3153
3337
  *
@@ -3212,6 +3396,10 @@ export type AgentDefaults = {
3212
3396
  * **No fee, but not free**: the code and its output are model tokens, billed like any reply.
3213
3397
  */
3214
3398
  code_execution: boolean | null;
3399
+ /**
3400
+ * The platform's own tools this agent is not offered, while the feature each belongs to stays on: `search_knowledge` (its knowledge is still looked up before replies when `knowledge_lookup_first` is on), `forget_fact` (it cannot forget a fact when asked), `remember_conversation` (memories are still read from its conversations), `search_memories` (it knows a topic by its line alone) and `remember_relation` (the relationship stays as it is, and is still told to it). `hand_off` and `schedule_message` have switches of their own: `handoffs` and `outreach_tool`. Always answered: `[]` for none.
3401
+ */
3402
+ tools_off: Array<'search_knowledge' | 'forget_fact' | 'remember_conversation' | 'search_memories' | 'remember_relation'> | null;
3215
3403
  /**
3216
3404
  * Compact automatically once a reply's first model call reads this many tokens — the conversation, its summary and the instruction, without the inline knowledge or the turn's looked-up passages, which no summary shrinks. Tool results do not count. Unset uses the platform's default, `agents.memory.compaction.default_threshold_tokens` on the Limits page. At most 200,000, and at least twice what the instruction costs on its own. `POST /v1/agent/sessions/{id}/compact` works whatever it is.
3217
3405
  */
@@ -3363,22 +3551,71 @@ export type AgentsFollowing = {
3363
3551
  */
3364
3552
  agents: number;
3365
3553
  /**
3366
- * How many of them follow each section: what a change to that section's defaults reaches.
3554
+ * How many of them follow each field: what a change to that field's default reaches.
3367
3555
  */
3368
- sections: {
3556
+ fields: {
3369
3557
  model: number;
3370
- voice: number;
3371
- hearing: number;
3372
- emotion: number;
3373
- relationship: number;
3374
- knowledge: number;
3375
- builtin_tools: number;
3376
- compaction: number;
3377
- facts: number;
3378
- memories: number;
3379
- reports: number;
3380
- outreach: number;
3381
- safety: number;
3558
+ thinking_level: number;
3559
+ thinking_summaries: number;
3560
+ max_output_tokens: number;
3561
+ temperature: number;
3562
+ top_p: number;
3563
+ top_k: number;
3564
+ presence_penalty: number;
3565
+ frequency_penalty: number;
3566
+ seed: number;
3567
+ stop_sequences: number;
3568
+ language: number;
3569
+ voice_enabled: number;
3570
+ voice_config: number;
3571
+ stream_chunk_schedule: number;
3572
+ stt_config: number;
3573
+ emotion_enabled: number;
3574
+ emotion_instruction: number;
3575
+ relation_enabled: number;
3576
+ relation_instruction: number;
3577
+ knowledge_enabled: number;
3578
+ knowledge_mode: number;
3579
+ knowledge_lookup_first: number;
3580
+ knowledge_max_results: number;
3581
+ url_context: number;
3582
+ code_execution: number;
3583
+ tools_off: number;
3584
+ compact_threshold_tokens: number;
3585
+ compact_instruction: number;
3586
+ compact_model: number;
3587
+ compact_thinking_level: number;
3588
+ compact_max_output_tokens: number;
3589
+ fact_instruction: number;
3590
+ fact_model: number;
3591
+ fact_thinking_level: number;
3592
+ fact_max_output_tokens: number;
3593
+ max_facts: number;
3594
+ facts_enabled: number;
3595
+ facts_scope: number;
3596
+ memories_enabled: number;
3597
+ memories_scope: number;
3598
+ memory_model: number;
3599
+ memory_thinking_level: number;
3600
+ memory_max_output_tokens: number;
3601
+ memory_instruction: number;
3602
+ memory_categories: number;
3603
+ report_enabled: number;
3604
+ report_fields: number;
3605
+ report_success: number;
3606
+ report_instruction: number;
3607
+ report_model: number;
3608
+ report_thinking_level: number;
3609
+ report_max_output_tokens: number;
3610
+ report_transcript: number;
3611
+ outreach_enabled: number;
3612
+ outreach_quiet_hours: number;
3613
+ outreach_time_zone: number;
3614
+ outreach_tool: number;
3615
+ guardrails: number;
3616
+ age_level: number;
3617
+ blocked_topics: number;
3618
+ fallback_message: number;
3382
3619
  };
3383
3620
  };
3384
3621
  export type AgentSettingsUpdate = {
@@ -3427,9 +3664,9 @@ export type AgentSettingsUpdate = {
3427
3664
  agent_defaults?: AgentDefaultsUpdate;
3428
3665
  };
3429
3666
  /**
3430
- * What an agent following a section of `org_defaults` runs with, instead of its own. A field left unset is what a new agent has. The instructions and the chunk schedule are `default_*` beside this.
3667
+ * What an agent following a field of `org_defaults` runs with, instead of its own. A field left unset is what a new agent has. The instructions and the chunk schedule are `default_*` beside this.
3431
3668
  *
3432
- * **A change reaches every agent following that section at once**, with no draft to try it in, within about a minute. Only what you send changes; `null` takes a field away.
3669
+ * **A change reaches every agent following that field at once**, with no draft to try it in, within about a minute. Only what you send changes; `null` takes a field away.
3433
3670
  */
3434
3671
  export type AgentDefaultsUpdate = {
3435
3672
  /**
@@ -3448,6 +3685,38 @@ export type AgentDefaultsUpdate = {
3448
3685
  * Cap on reply length. Unset means the model's own limit.
3449
3686
  */
3450
3687
  max_output_tokens?: number | null;
3688
+ /**
3689
+ * How random the replies are, 0 to 2. **Sent only to a model that still reads it: `gemini-3.1-flash-lite`.** Google ignores it on its newer models and asks for it to be left out, so for any other model it is kept and not sent. Google recommends leaving it unset on its Gemini 3 models, where a lower temperature can make replies loop. Unset sends none, so the model's own default applies.
3690
+ */
3691
+ temperature?: number | null;
3692
+ /**
3693
+ * How much of the likeliest words the model picks from, by their total probability, 0 to 1. **Sent only to a model that still reads it: `gemini-3.1-flash-lite`.** Google ignores it on its newer models and asks for it to be left out, so for any other model it is kept and not sent. Google recommends leaving it unset on its Gemini 3 models, where a lower temperature can make replies loop. Unset sends none, so the model's own default applies.
3694
+ */
3695
+ top_p?: number | null;
3696
+ /**
3697
+ * How many of the likeliest words the model picks from, 1 to 1,000. **Sent only to a model that still reads it: `gemini-3.1-flash-lite`.** Google ignores it on its newer models and asks for it to be left out, so for any other model it is kept and not sent. Google recommends leaving it unset on its Gemini 3 models, where a lower temperature can make replies loop. Unset sends none, so the model's own default applies.
3698
+ */
3699
+ top_k?: number | null;
3700
+ /**
3701
+ * How much the model avoids a word it has already used, however often: from -2 up to 2, positive avoiding it. Unset sends none, so the model's own default applies.
3702
+ */
3703
+ presence_penalty?: number | null;
3704
+ /**
3705
+ * How much the model avoids a word by how often it has used it: from -2 up to 2, positive avoiding it. A large negative value can make it repeat a word until the reply's cap. Unset sends none.
3706
+ */
3707
+ frequency_penalty?: number | null;
3708
+ /**
3709
+ * The same seed makes the same request answer more alike — useful when testing an agent. Never a guarantee. Unset is a new one each time.
3710
+ */
3711
+ seed?: number | null;
3712
+ /**
3713
+ * Where the model stops writing a reply: at the first of these it writes, which is left out. At most 5, of 100 characters each. **One that could end a reply inside its mood line is refused** (422) — a mood opens a reply with `emotion_enabled` on, as `mood: happy 0.6` on a line of its own, so a newline, a space, a digit, `mood` or part of a mood's name would leave no reply. The complete list: `null` or `[]` clears it.
3714
+ */
3715
+ stop_sequences?: Array<string> | null;
3716
+ /**
3717
+ * The language the agent replies in, as a tag — `es`, `pt-BR` — whatever language the person writes in: told to the model, spoken by the voice where `voice_config` names no `language` of its own, and the hint its hearing transcribes with (the language alone, `pt` of `pt-BR`) where `stt_config` names none. **A conversation whose key names a `language` uses that instead.** Unset, the agent answers in the language it is spoken to in.
3718
+ */
3719
+ language?: string | null;
3451
3720
  /**
3452
3721
  * Whether replies come back as audio as well as text.
3453
3722
  *
@@ -3512,6 +3781,10 @@ export type AgentDefaultsUpdate = {
3512
3781
  * **No fee, but not free**: the code and its output are model tokens, billed like any reply.
3513
3782
  */
3514
3783
  code_execution?: boolean | null;
3784
+ /**
3785
+ * The platform's own tools this agent is not offered, while the feature each belongs to stays on: `search_knowledge` (its knowledge is still looked up before replies when `knowledge_lookup_first` is on), `forget_fact` (it cannot forget a fact when asked), `remember_conversation` (memories are still read from its conversations), `search_memories` (it knows a topic by its line alone) and `remember_relation` (the relationship stays as it is, and is still told to it). `hand_off` and `schedule_message` have switches of their own: `handoffs` and `outreach_tool`. The complete list: `null` or `[]` clears it.
3786
+ */
3787
+ tools_off?: Array<'search_knowledge' | 'forget_fact' | 'remember_conversation' | 'search_memories' | 'remember_relation'> | null;
3515
3788
  /**
3516
3789
  * Compact automatically once a reply's first model call reads this many tokens — the conversation, its summary and the instruction, without the inline knowledge or the turn's looked-up passages, which no summary shrinks. Tool results do not count. Unset uses the platform's default, `agents.memory.compaction.default_threshold_tokens` on the Limits page. At most 200,000, and at least twice what the instruction costs on its own. `POST /v1/agent/sessions/{id}/compact` works whatever it is.
3517
3790
  */
@@ -3720,6 +3993,54 @@ export type AgentUpdate = {
3720
3993
  * What the agent says when the model provider's own safety filter holds a reply back, in place of it: one line in the agent's voice, such as "Hmm, let's talk about something else!" — 1 to 300 characters, at any `age_level`. It is said and spoken as any reply, and the turn ends with `turn.done`; a reply held back part-way keeps what it had said, less the sentence it was writing. **Unset, a held-back reply ends with an `error` (`provider_failed`) and `interrupted`**, as before. Never for the opening line. Recommended for `kids` and `teens`, whose filters are stricter.
3721
3994
  */
3722
3995
  fallback_message?: string | null;
3996
+ /**
3997
+ * Whether the agent plays a character or is an assistant. `character` (the default, and what unset means) opens its instructions with "You are playing a character… Stay in character", for a companion, a game's character or a tutor with a persona. `assistant` opens them as an assistant helping the user, for a support desk or a helper, which then has no character to stay in. The rest of its instructions are the same either way.
3998
+ */
3999
+ role?: 'character' | 'assistant' | null;
4000
+ /**
4001
+ * The language the agent replies in, as a tag — `es`, `pt-BR` — whatever language the person writes in: told to the model, spoken by the voice where `voice_config` names no `language` of its own, and the hint its hearing transcribes with (the language alone, `pt` of `pt-BR`) where `stt_config` names none. **A conversation whose key names a `language` uses that instead.** Unset, the agent answers in the language it is spoken to in.
4002
+ */
4003
+ language?: string | null;
4004
+ /**
4005
+ * Lines in the agent's voice, to show the model how it talks — its manner, not lines to repeat: at most 20, of 500 characters each, each read as one line. Part of its instructions on every turn, so they are prompt tokens on every reply. The complete list: `null` or `[]` clears it.
4006
+ */
4007
+ example_lines?: Array<string> | null;
4008
+ /**
4009
+ * Opening lines the agent picks one of at random each time it greets — or, with `first_message_generated` on, directions it picks one of to write one by: at most 10, of 1000 characters each. **When it lists any, `first_message` is not used.** A key's own `first_message` is still said in place of them. The complete list: `null` or `[]` clears it.
4010
+ */
4011
+ first_messages?: Array<string> | null;
4012
+ /**
4013
+ * How random the replies are, 0 to 2. **Sent only to a model that still reads it: `gemini-3.1-flash-lite`.** Google ignores it on its newer models and asks for it to be left out, so for any other model it is kept and not sent. Google recommends leaving it unset on its Gemini 3 models, where a lower temperature can make replies loop. Unset sends none, so the model's own default applies.
4014
+ */
4015
+ temperature?: number | null;
4016
+ /**
4017
+ * How much of the likeliest words the model picks from, by their total probability, 0 to 1. **Sent only to a model that still reads it: `gemini-3.1-flash-lite`.** Google ignores it on its newer models and asks for it to be left out, so for any other model it is kept and not sent. Google recommends leaving it unset on its Gemini 3 models, where a lower temperature can make replies loop. Unset sends none, so the model's own default applies.
4018
+ */
4019
+ top_p?: number | null;
4020
+ /**
4021
+ * How many of the likeliest words the model picks from, 1 to 1,000. **Sent only to a model that still reads it: `gemini-3.1-flash-lite`.** Google ignores it on its newer models and asks for it to be left out, so for any other model it is kept and not sent. Google recommends leaving it unset on its Gemini 3 models, where a lower temperature can make replies loop. Unset sends none, so the model's own default applies.
4022
+ */
4023
+ top_k?: number | null;
4024
+ /**
4025
+ * How much the model avoids a word it has already used, however often: from -2 up to 2, positive avoiding it. Unset sends none, so the model's own default applies.
4026
+ */
4027
+ presence_penalty?: number | null;
4028
+ /**
4029
+ * How much the model avoids a word by how often it has used it: from -2 up to 2, positive avoiding it. A large negative value can make it repeat a word until the reply's cap. Unset sends none.
4030
+ */
4031
+ frequency_penalty?: number | null;
4032
+ /**
4033
+ * The same seed makes the same request answer more alike — useful when testing an agent. Never a guarantee. Unset is a new one each time.
4034
+ */
4035
+ seed?: number | null;
4036
+ /**
4037
+ * Where the model stops writing a reply: at the first of these it writes, which is left out. At most 5, of 100 characters each. **One that could end a reply inside its mood line is refused** (422) — a mood opens a reply with `emotion_enabled` on, as `mood: happy 0.6` on a line of its own, so a newline, a space, a digit, `mood` or part of a mood's name would leave no reply. The complete list: `null` or `[]` clears it.
4038
+ */
4039
+ stop_sequences?: Array<string> | null;
4040
+ /**
4041
+ * The platform's own tools this agent is not offered, while the feature each belongs to stays on: `search_knowledge` (its knowledge is still looked up before replies when `knowledge_lookup_first` is on), `forget_fact` (it cannot forget a fact when asked), `remember_conversation` (memories are still read from its conversations), `search_memories` (it knows a topic by its line alone) and `remember_relation` (the relationship stays as it is, and is still told to it). `hand_off` and `schedule_message` have switches of their own: `handoffs` and `outreach_tool`. The complete list: `null` or `[]` clears it.
4042
+ */
4043
+ tools_off?: Array<'search_knowledge' | 'forget_fact' | 'remember_conversation' | 'search_memories' | 'remember_relation'> | null;
3723
4044
  /**
3724
4045
  * Other agents of yours this one may pass the conversation to, each with when: the agent is offered a tool to hand off, and the agent it hands to answers the person's last message and carries the conversation on, with its own instructions, voice, knowledge and tools. At most 10. The complete list, in order: `null` or `[]` clears it.
3725
4046
  */
@@ -3973,13 +4294,17 @@ export type AgentUpdate = {
3973
4294
  */
3974
4295
  voice_enabled?: boolean | null;
3975
4296
  /**
3976
- * The sections of this agent's settings it takes from your organisation's `agent_defaults` (`GET /v1/agents/settings`) instead of its own: the complete list, `null` or `[]` for none.
4297
+ * The settings this agent takes from your organisation's `agent_defaults` (`GET /v1/agents/settings`) instead of its own, by field name: the complete list, `null` or `[]` for none.
3977
4298
  *
3978
- * A new agent follows every section you did not set when you made it. An agent made before this existed follows none until you say so.
4299
+ * Each setting is followed on its own, except a model call's, which only work together and are followed as one: `model` with `thinking_level`, `thinking_summaries`, `max_output_tokens`, `temperature`, `top_p`, `top_k`, `presence_penalty`, `frequency_penalty`, `seed` and `stop_sequences`; and for each of `compact`, `fact`, `memory` and `report`, its `_model`, `_thinking_level` and `_max_output_tokens`.
3979
4300
  *
3980
- * Sending a value that differs from what a followed section runs with customises that section: the organisation's values are copied onto the agent and your change laid over them. Sending the value it already runs with changes nothing. Naming a section here and sending a different value for one of its fields in the same request is a 422.
4301
+ * A new agent follows every setting you did not set when you made it. An agent made before this existed follows none until you say so.
4302
+ *
4303
+ * Sending a value that differs from what a followed setting runs with customises that setting, or its set: the organisation's values are copied onto the agent and your change laid over them, and the rest keep following. Sending the value it already runs with changes nothing. Naming a field here and sending a different value for it in the same request is a 422.
4304
+ *
4305
+ * Naming one field of a set names all of it. A section's name — `voice`, `safety` and the rest of the console's tabs — stands for every field of it.
3981
4306
  */
3982
- org_defaults?: Array<'model' | 'voice' | 'hearing' | 'emotion' | 'relationship' | 'knowledge' | 'builtin_tools' | 'compaction' | 'facts' | 'memories' | 'reports' | 'outreach' | 'safety'> | null;
4307
+ org_defaults?: Array<'model' | 'thinking_level' | 'thinking_summaries' | 'max_output_tokens' | 'temperature' | 'top_p' | 'top_k' | 'presence_penalty' | 'frequency_penalty' | 'seed' | 'stop_sequences' | 'language' | 'voice_enabled' | 'voice_config' | 'stream_chunk_schedule' | 'stt_config' | 'emotion_enabled' | 'emotion_instruction' | 'relation_enabled' | 'relation_instruction' | 'knowledge_enabled' | 'knowledge_mode' | 'knowledge_lookup_first' | 'knowledge_max_results' | 'url_context' | 'code_execution' | 'tools_off' | 'compact_threshold_tokens' | 'compact_instruction' | 'compact_model' | 'compact_thinking_level' | 'compact_max_output_tokens' | 'fact_instruction' | 'fact_model' | 'fact_thinking_level' | 'fact_max_output_tokens' | 'max_facts' | 'facts_enabled' | 'facts_scope' | 'memories_enabled' | 'memories_scope' | 'memory_model' | 'memory_thinking_level' | 'memory_max_output_tokens' | 'memory_instruction' | 'memory_categories' | 'report_enabled' | 'report_fields' | 'report_success' | 'report_instruction' | 'report_model' | 'report_thinking_level' | 'report_max_output_tokens' | 'report_transcript' | 'outreach_enabled' | 'outreach_quiet_hours' | 'outreach_time_zone' | 'outreach_tool' | 'guardrails' | 'age_level' | 'blocked_topics' | 'fallback_message' | 'voice' | 'hearing' | 'emotion' | 'relationship' | 'knowledge' | 'builtin_tools' | 'compaction' | 'facts' | 'memories' | 'reports' | 'outreach' | 'safety'> | null;
3983
4308
  /**
3984
4309
  * The `version` you last read for this agent. When set and the agent has been changed since, the update is refused with 409 and nothing is written - re-read it and decide again. Omit it to write unconditionally.
3985
4310
  */
@@ -4216,6 +4541,54 @@ export type AgentDraftUpdate = {
4216
4541
  * What the agent says when the model provider's own safety filter holds a reply back, in place of it: one line in the agent's voice, such as "Hmm, let's talk about something else!" — 1 to 300 characters, at any `age_level`. It is said and spoken as any reply, and the turn ends with `turn.done`; a reply held back part-way keeps what it had said, less the sentence it was writing. **Unset, a held-back reply ends with an `error` (`provider_failed`) and `interrupted`**, as before. Never for the opening line. Recommended for `kids` and `teens`, whose filters are stricter.
4217
4542
  */
4218
4543
  fallback_message?: string | null;
4544
+ /**
4545
+ * Whether the agent plays a character or is an assistant. `character` (the default, and what unset means) opens its instructions with "You are playing a character… Stay in character", for a companion, a game's character or a tutor with a persona. `assistant` opens them as an assistant helping the user, for a support desk or a helper, which then has no character to stay in. The rest of its instructions are the same either way.
4546
+ */
4547
+ role?: 'character' | 'assistant' | null;
4548
+ /**
4549
+ * The language the agent replies in, as a tag — `es`, `pt-BR` — whatever language the person writes in: told to the model, spoken by the voice where `voice_config` names no `language` of its own, and the hint its hearing transcribes with (the language alone, `pt` of `pt-BR`) where `stt_config` names none. **A conversation whose key names a `language` uses that instead.** Unset, the agent answers in the language it is spoken to in.
4550
+ */
4551
+ language?: string | null;
4552
+ /**
4553
+ * Lines in the agent's voice, to show the model how it talks — its manner, not lines to repeat: at most 20, of 500 characters each, each read as one line. Part of its instructions on every turn, so they are prompt tokens on every reply. The complete list: `null` or `[]` clears it.
4554
+ */
4555
+ example_lines?: Array<string> | null;
4556
+ /**
4557
+ * Opening lines the agent picks one of at random each time it greets — or, with `first_message_generated` on, directions it picks one of to write one by: at most 10, of 1000 characters each. **When it lists any, `first_message` is not used.** A key's own `first_message` is still said in place of them. The complete list: `null` or `[]` clears it.
4558
+ */
4559
+ first_messages?: Array<string> | null;
4560
+ /**
4561
+ * How random the replies are, 0 to 2. **Sent only to a model that still reads it: `gemini-3.1-flash-lite`.** Google ignores it on its newer models and asks for it to be left out, so for any other model it is kept and not sent. Google recommends leaving it unset on its Gemini 3 models, where a lower temperature can make replies loop. Unset sends none, so the model's own default applies.
4562
+ */
4563
+ temperature?: number | null;
4564
+ /**
4565
+ * How much of the likeliest words the model picks from, by their total probability, 0 to 1. **Sent only to a model that still reads it: `gemini-3.1-flash-lite`.** Google ignores it on its newer models and asks for it to be left out, so for any other model it is kept and not sent. Google recommends leaving it unset on its Gemini 3 models, where a lower temperature can make replies loop. Unset sends none, so the model's own default applies.
4566
+ */
4567
+ top_p?: number | null;
4568
+ /**
4569
+ * How many of the likeliest words the model picks from, 1 to 1,000. **Sent only to a model that still reads it: `gemini-3.1-flash-lite`.** Google ignores it on its newer models and asks for it to be left out, so for any other model it is kept and not sent. Google recommends leaving it unset on its Gemini 3 models, where a lower temperature can make replies loop. Unset sends none, so the model's own default applies.
4570
+ */
4571
+ top_k?: number | null;
4572
+ /**
4573
+ * How much the model avoids a word it has already used, however often: from -2 up to 2, positive avoiding it. Unset sends none, so the model's own default applies.
4574
+ */
4575
+ presence_penalty?: number | null;
4576
+ /**
4577
+ * How much the model avoids a word by how often it has used it: from -2 up to 2, positive avoiding it. A large negative value can make it repeat a word until the reply's cap. Unset sends none.
4578
+ */
4579
+ frequency_penalty?: number | null;
4580
+ /**
4581
+ * The same seed makes the same request answer more alike — useful when testing an agent. Never a guarantee. Unset is a new one each time.
4582
+ */
4583
+ seed?: number | null;
4584
+ /**
4585
+ * Where the model stops writing a reply: at the first of these it writes, which is left out. At most 5, of 100 characters each. **One that could end a reply inside its mood line is refused** (422) — a mood opens a reply with `emotion_enabled` on, as `mood: happy 0.6` on a line of its own, so a newline, a space, a digit, `mood` or part of a mood's name would leave no reply. The complete list: `null` or `[]` clears it.
4586
+ */
4587
+ stop_sequences?: Array<string> | null;
4588
+ /**
4589
+ * The platform's own tools this agent is not offered, while the feature each belongs to stays on: `search_knowledge` (its knowledge is still looked up before replies when `knowledge_lookup_first` is on), `forget_fact` (it cannot forget a fact when asked), `remember_conversation` (memories are still read from its conversations), `search_memories` (it knows a topic by its line alone) and `remember_relation` (the relationship stays as it is, and is still told to it). `hand_off` and `schedule_message` have switches of their own: `handoffs` and `outreach_tool`. The complete list: `null` or `[]` clears it.
4590
+ */
4591
+ tools_off?: Array<'search_knowledge' | 'forget_fact' | 'remember_conversation' | 'search_memories' | 'remember_relation'> | null;
4219
4592
  /**
4220
4593
  * Other agents of yours this one may pass the conversation to, each with when: the agent is offered a tool to hand off, and the agent it hands to answers the person's last message and carries the conversation on, with its own instructions, voice, knowledge and tools. At most 10. The complete list, in order: `null` or `[]` clears it.
4221
4594
  */
@@ -4469,13 +4842,17 @@ export type AgentDraftUpdate = {
4469
4842
  */
4470
4843
  voice_enabled?: boolean | null;
4471
4844
  /**
4472
- * The sections of this agent's settings it takes from your organisation's `agent_defaults` (`GET /v1/agents/settings`) instead of its own: the complete list, `null` or `[]` for none.
4845
+ * The settings this agent takes from your organisation's `agent_defaults` (`GET /v1/agents/settings`) instead of its own, by field name: the complete list, `null` or `[]` for none.
4846
+ *
4847
+ * Each setting is followed on its own, except a model call's, which only work together and are followed as one: `model` with `thinking_level`, `thinking_summaries`, `max_output_tokens`, `temperature`, `top_p`, `top_k`, `presence_penalty`, `frequency_penalty`, `seed` and `stop_sequences`; and for each of `compact`, `fact`, `memory` and `report`, its `_model`, `_thinking_level` and `_max_output_tokens`.
4848
+ *
4849
+ * A new agent follows every setting you did not set when you made it. An agent made before this existed follows none until you say so.
4473
4850
  *
4474
- * A new agent follows every section you did not set when you made it. An agent made before this existed follows none until you say so.
4851
+ * Sending a value that differs from what a followed setting runs with customises that setting, or its set: the organisation's values are copied onto the agent and your change laid over them, and the rest keep following. Sending the value it already runs with changes nothing. Naming a field here and sending a different value for it in the same request is a 422.
4475
4852
  *
4476
- * Sending a value that differs from what a followed section runs with customises that section: the organisation's values are copied onto the agent and your change laid over them. Sending the value it already runs with changes nothing. Naming a section here and sending a different value for one of its fields in the same request is a 422.
4853
+ * Naming one field of a set names all of it. A section's name — `voice`, `safety` and the rest of the console's tabs — stands for every field of it.
4477
4854
  */
4478
- org_defaults?: Array<'model' | 'voice' | 'hearing' | 'emotion' | 'relationship' | 'knowledge' | 'builtin_tools' | 'compaction' | 'facts' | 'memories' | 'reports' | 'outreach' | 'safety'> | null;
4855
+ org_defaults?: Array<'model' | 'thinking_level' | 'thinking_summaries' | 'max_output_tokens' | 'temperature' | 'top_p' | 'top_k' | 'presence_penalty' | 'frequency_penalty' | 'seed' | 'stop_sequences' | 'language' | 'voice_enabled' | 'voice_config' | 'stream_chunk_schedule' | 'stt_config' | 'emotion_enabled' | 'emotion_instruction' | 'relation_enabled' | 'relation_instruction' | 'knowledge_enabled' | 'knowledge_mode' | 'knowledge_lookup_first' | 'knowledge_max_results' | 'url_context' | 'code_execution' | 'tools_off' | 'compact_threshold_tokens' | 'compact_instruction' | 'compact_model' | 'compact_thinking_level' | 'compact_max_output_tokens' | 'fact_instruction' | 'fact_model' | 'fact_thinking_level' | 'fact_max_output_tokens' | 'max_facts' | 'facts_enabled' | 'facts_scope' | 'memories_enabled' | 'memories_scope' | 'memory_model' | 'memory_thinking_level' | 'memory_max_output_tokens' | 'memory_instruction' | 'memory_categories' | 'report_enabled' | 'report_fields' | 'report_success' | 'report_instruction' | 'report_model' | 'report_thinking_level' | 'report_max_output_tokens' | 'report_transcript' | 'outreach_enabled' | 'outreach_quiet_hours' | 'outreach_time_zone' | 'outreach_tool' | 'guardrails' | 'age_level' | 'blocked_topics' | 'fallback_message' | 'voice' | 'hearing' | 'emotion' | 'relationship' | 'knowledge' | 'builtin_tools' | 'compaction' | 'facts' | 'memories' | 'reports' | 'outreach' | 'safety'> | null;
4479
4856
  /**
4480
4857
  * The whole set of tools the agent would have, by `tl_…`; omitted, the draft's as they are. Ids not yours are left out.
4481
4858
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumavox/server",
3
- "version": "0.49.1",
3
+ "version": "0.51.0",
4
4
  "description": "The Lumavox API from your server: end users, ephemeral keys and the rest, typed from the published OpenAPI document. Zero dependencies.",
5
5
  "license": "MIT",
6
6
  "type": "module",