@runtypelabs/persona 3.33.0 → 3.34.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.
package/dist/index.d.cts CHANGED
@@ -2119,12 +2119,44 @@ type AgentToolsConfig = {
2119
2119
  mcpServers?: Array<Record<string, unknown>>;
2120
2120
  /** Maximum number of tool invocations per execution */
2121
2121
  maxToolCalls?: number;
2122
+ /** How the model is steered toward tools: let it decide, force a call, or disable */
2123
+ toolCallStrategy?: "auto" | "required" | "none";
2124
+ /** Per-tool invocation limits / requirements keyed by tool name */
2125
+ perToolLimits?: Record<string, {
2126
+ maxCalls?: number;
2127
+ required?: boolean;
2128
+ }>;
2122
2129
  /** Tool approval configuration for human-in-the-loop workflows */
2123
2130
  approval?: {
2124
2131
  /** Tool names/patterns to require approval for, or true for all tools */
2125
2132
  require: string[] | boolean;
2126
2133
  /** Approval timeout in milliseconds (default: 300000 / 5 minutes) */
2127
2134
  timeout?: number;
2135
+ /** Ask the agent to state its intent alongside approval requests (default: true) */
2136
+ requestReason?: boolean;
2137
+ };
2138
+ /**
2139
+ * Enables the synthesized `spawn_subagent` tool: the model can spin up
2140
+ * ad-hoc child agents at runtime, restricted to `toolPool` (tool IDs /
2141
+ * runtime-tool names already granted to the parent agent).
2142
+ */
2143
+ subagentConfig?: {
2144
+ toolPool: string[];
2145
+ defaultMaxTurns?: number;
2146
+ maxTurnsLimit?: number;
2147
+ maxSpawnsPerRun?: number;
2148
+ defaultModel?: string;
2149
+ allowNesting?: boolean;
2150
+ defaultTimeoutMs?: number;
2151
+ };
2152
+ /**
2153
+ * Enables the synthesized `code_mode` tool: the model writes JS that calls
2154
+ * pool tools inside a sandbox instead of issuing individual tool calls.
2155
+ */
2156
+ codeModeConfig?: {
2157
+ toolPool: string[];
2158
+ description?: string;
2159
+ timeoutMs?: number;
2128
2160
  };
2129
2161
  };
2130
2162
  /** Artifact kinds for the Persona sidebar and dispatch payload */
package/dist/index.d.ts CHANGED
@@ -2119,12 +2119,44 @@ type AgentToolsConfig = {
2119
2119
  mcpServers?: Array<Record<string, unknown>>;
2120
2120
  /** Maximum number of tool invocations per execution */
2121
2121
  maxToolCalls?: number;
2122
+ /** How the model is steered toward tools: let it decide, force a call, or disable */
2123
+ toolCallStrategy?: "auto" | "required" | "none";
2124
+ /** Per-tool invocation limits / requirements keyed by tool name */
2125
+ perToolLimits?: Record<string, {
2126
+ maxCalls?: number;
2127
+ required?: boolean;
2128
+ }>;
2122
2129
  /** Tool approval configuration for human-in-the-loop workflows */
2123
2130
  approval?: {
2124
2131
  /** Tool names/patterns to require approval for, or true for all tools */
2125
2132
  require: string[] | boolean;
2126
2133
  /** Approval timeout in milliseconds (default: 300000 / 5 minutes) */
2127
2134
  timeout?: number;
2135
+ /** Ask the agent to state its intent alongside approval requests (default: true) */
2136
+ requestReason?: boolean;
2137
+ };
2138
+ /**
2139
+ * Enables the synthesized `spawn_subagent` tool: the model can spin up
2140
+ * ad-hoc child agents at runtime, restricted to `toolPool` (tool IDs /
2141
+ * runtime-tool names already granted to the parent agent).
2142
+ */
2143
+ subagentConfig?: {
2144
+ toolPool: string[];
2145
+ defaultMaxTurns?: number;
2146
+ maxTurnsLimit?: number;
2147
+ maxSpawnsPerRun?: number;
2148
+ defaultModel?: string;
2149
+ allowNesting?: boolean;
2150
+ defaultTimeoutMs?: number;
2151
+ };
2152
+ /**
2153
+ * Enables the synthesized `code_mode` tool: the model writes JS that calls
2154
+ * pool tools inside a sandbox instead of issuing individual tool calls.
2155
+ */
2156
+ codeModeConfig?: {
2157
+ toolPool: string[];
2158
+ description?: string;
2159
+ timeoutMs?: number;
2128
2160
  };
2129
2161
  };
2130
2162
  /** Artifact kinds for the Persona sidebar and dispatch payload */