Spaces:
Running
Running
| <html class="default" lang="en" data-base=".."><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>IGlobalConfig | agent-swarm-kit</title><meta name="description" content="Documentation for agent-swarm-kit"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">agent-swarm-kit</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">agent-swarm-kit</a></li><li><a href="../modules/types.html">types</a></li><li><a href="types.IGlobalConfig.html">IGlobalConfig</a></li></ul><h1>Interface IGlobalConfig</h1></div><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><p>Interface defining the global configuration settings and behaviors for the swarm system. | |
| Centralizes constants and functions used across components like <code>ClientAgent</code> (e.g., tool handling, logging, history). | |
| Influences workflows such as message processing (<code>CC_EMPTY_OUTPUT_PLACEHOLDERS</code> in <code>RUN_FN</code>), tool call recovery (<code>CC_RESQUE_STRATEGY</code> in <code>_resurrectModel</code>), and logging (<code>CC_LOGGER_ENABLE_DEBUG</code>). | |
| Customizable via <code>setConfig</code> to adapt system behavior dynamically.</p> | |
| </div><div class="tsd-comment tsd-typography"></div></section><div class="tsd-signature"><span class="tsd-signature-keyword">interface</span> <span class="tsd-kind-interface">IGlobalConfig</span> <span class="tsd-signature-symbol">{</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_agent_default_validation">CC_AGENT_DEFAULT_VALIDATION</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">output</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_agent_disallowed_symbols">CC_AGENT_DISALLOWED_SYMBOLS</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_agent_disallowed_tags">CC_AGENT_DISALLOWED_TAGS</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_agent_history_filter">CC_AGENT_HISTORY_FILTER</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">agentName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">message</span><span class="tsd-signature-symbol">:</span> <a href="types.ISwarmMessage.html" class="tsd-signature-type tsd-kind-interface">ISwarmMessage</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_agent_map_tools">CC_AGENT_MAP_TOOLS</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">tool</span><span class="tsd-signature-symbol">:</span> <a href="types.IToolCall.html" class="tsd-signature-type tsd-kind-interface">IToolCall</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">clientId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">agentName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <a href="types.IToolCall.html" class="tsd-signature-type tsd-kind-interface">IToolCall</a><span class="tsd-signature-symbol">[]</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="types.IToolCall.html" class="tsd-signature-type tsd-kind-interface">IToolCall</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_agent_output_map">CC_AGENT_OUTPUT_MAP</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">message</span><span class="tsd-signature-symbol">:</span> <a href="types.ISwarmMessage.html" class="tsd-signature-type tsd-kind-interface">ISwarmMessage</a><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <a href="types.ISwarmMessage.html" class="tsd-signature-type tsd-kind-interface">ISwarmMessage</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">object</span><span class="tsd-signature-symbol">></span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="types.ISwarmMessage.html" class="tsd-signature-type tsd-kind-interface">ISwarmMessage</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">object</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_agent_output_transform">CC_AGENT_OUTPUT_TRANSFORM</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">input</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">clientId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">agentName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_agent_system_prompt">CC_AGENT_SYSTEM_PROMPT</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_autoban_enabled_by_default">CC_AUTOBAN_ENABLED_BY_DEFAULT</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_banhammer_placeholder">CC_BANHAMMER_PLACEHOLDER</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_default_agent_tool_validate">CC_DEFAULT_AGENT_TOOL_VALIDATE</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">dto</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">agentName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">clientId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">params</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">toolCalls</span><span class="tsd-signature-symbol">:</span> <a href="types.IToolCall.html" class="tsd-signature-type tsd-kind-interface">IToolCall</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">boolean</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_default_connect_operator">CC_DEFAULT_CONNECT_OPERATOR</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">clientId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">agentName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">message</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">next</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">answer</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">DisposeFn$1</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_default_policy_get">CC_DEFAULT_POLICY_GET</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">policyName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">swarmName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_default_policy_get_ban_clients">CC_DEFAULT_POLICY_GET_BAN_CLIENTS</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">policyName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">swarmName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_default_policy_set">CC_DEFAULT_POLICY_SET</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">clientIds</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">policyName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">swarmName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_default_read_embedding_cache">CC_DEFAULT_READ_EMBEDDING_CACHE</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">embeddingName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">stringHash</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_default_state_get">CC_DEFAULT_STATE_GET</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="">T</a> <span class="tsd-signature-symbol">=</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">clientId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">stateName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">defaultState</span><span class="tsd-signature-symbol">:</span> <a class="tsd-signature-type tsd-kind-type-parameter" href="">T</a><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="">T</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_default_state_set">CC_DEFAULT_STATE_SET</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="">T</a> <span class="tsd-signature-symbol">=</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">state</span><span class="tsd-signature-symbol">:</span> <a class="tsd-signature-type tsd-kind-type-parameter" href="">T</a><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">clientId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">stateName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_default_storage_get">CC_DEFAULT_STORAGE_GET</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="">T</a> <span class="tsd-signature-keyword">extends</span> <a href="types.IStorageData.html" class="tsd-signature-type tsd-kind-interface">IStorageData</a> <span class="tsd-signature-symbol">=</span> <a href="types.IStorageData.html" class="tsd-signature-type tsd-kind-interface">IStorageData</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">clientId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">storageName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">defaultValue</span><span class="tsd-signature-symbol">:</span> <a class="tsd-signature-type tsd-kind-type-parameter" href="">T</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="">T</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_default_storage_set">CC_DEFAULT_STORAGE_SET</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="">T</a> <span class="tsd-signature-keyword">extends</span> <a href="types.IStorageData.html" class="tsd-signature-type tsd-kind-interface">IStorageData</a> <span class="tsd-signature-symbol">=</span> <a href="types.IStorageData.html" class="tsd-signature-type tsd-kind-interface">IStorageData</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">data</span><span class="tsd-signature-symbol">:</span> <a class="tsd-signature-type tsd-kind-type-parameter" href="">T</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">clientId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">storageName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_default_write_embedding_cache">CC_DEFAULT_WRITE_EMBEDDING_CACHE</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">embeddings</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">embeddingName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">stringHash</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_empty_output_placeholders">CC_EMPTY_OUTPUT_PLACEHOLDERS</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_enable_operator_timeout">CC_ENABLE_OPERATOR_TIMEOUT</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_fn_plantuml">CC_FN_PLANTUML</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">uml</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_get_agent_history_adapter">CC_GET_AGENT_HISTORY_ADAPTER</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">clientId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">agentName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <a href="types.IHistoryAdapter.html" class="tsd-signature-type tsd-kind-interface">IHistoryAdapter</a><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_get_client_logger_adapter">CC_GET_CLIENT_LOGGER_ADAPTER</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">()</span> <span class="tsd-signature-symbol">=></span> <a href="types.ILoggerAdapter.html" class="tsd-signature-type tsd-kind-interface">ILoggerAdapter</a><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_keep_messages">CC_KEEP_MESSAGES</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_logger_enable_console">CC_LOGGER_ENABLE_CONSOLE</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_logger_enable_debug">CC_LOGGER_ENABLE_DEBUG</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_logger_enable_info">CC_LOGGER_ENABLE_INFO</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_logger_enable_log">CC_LOGGER_ENABLE_LOG</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_max_nested_executions">CC_MAX_NESTED_EXECUTIONS</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_max_tool_calls">CC_MAX_TOOL_CALLS</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_name_to_title">CC_NAME_TO_TITLE</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">name</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_persist_embedding_cache">CC_PERSIST_EMBEDDING_CACHE</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_persist_enabled_by_default">CC_PERSIST_ENABLED_BY_DEFAULT</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_persist_memory_storage">CC_PERSIST_MEMORY_STORAGE</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_process_uuid">CC_PROCESS_UUID</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_resque_strategy">CC_RESQUE_STRATEGY</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"custom"</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"flush"</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"recomplete"</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_skip_posix_rename">CC_SKIP_POSIX_RENAME</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_storage_disable_get_data">CC_STORAGE_DISABLE_GET_DATA</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_storage_search_pool">CC_STORAGE_SEARCH_POOL</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_storage_search_similarity">CC_STORAGE_SEARCH_SIMILARITY</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_swarm_agent_changed">CC_SWARM_AGENT_CHANGED</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">clientId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">agentName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">swarmName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_swarm_default_agent">CC_SWARM_DEFAULT_AGENT</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">clientId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">swarmName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">defaultAgent</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_swarm_default_stack">CC_SWARM_DEFAULT_STACK</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">clientId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">swarmName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_swarm_stack_changed">CC_SWARM_STACK_CHANGED</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">clientId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">navigationStack</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">swarmName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_throw_when_navigation_recursion">CC_THROW_WHEN_NAVIGATION_RECURSION</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_tool_call_exception_custom_function">CC_TOOL_CALL_EXCEPTION_CUSTOM_FUNCTION</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">clientId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">agentName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="types.ISwarmMessage.html" class="tsd-signature-type tsd-kind-interface">ISwarmMessage</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">object</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_tool_call_exception_flush_prompt">CC_TOOL_CALL_EXCEPTION_FLUSH_PROMPT</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="types.IGlobalConfig.html#cc_tool_call_exception_recomplete_prompt">CC_TOOL_CALL_EXCEPTION_RECOMPLETE_PROMPT</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12608">types.d.ts:12608</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex="0"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg> Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="types.IGlobalConfig.html#cc_agent_default_validation" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>AGENT_<wbr/>DEFAULT_<wbr/>VALIDATION</span></a> | |
| <a href="types.IGlobalConfig.html#cc_agent_disallowed_symbols" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>AGENT_<wbr/>DISALLOWED_<wbr/>SYMBOLS</span></a> | |
| <a href="types.IGlobalConfig.html#cc_agent_disallowed_tags" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>AGENT_<wbr/>DISALLOWED_<wbr/>TAGS</span></a> | |
| <a href="types.IGlobalConfig.html#cc_agent_history_filter" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>AGENT_<wbr/>HISTORY_<wbr/>FILTER</span></a> | |
| <a href="types.IGlobalConfig.html#cc_agent_map_tools" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>AGENT_<wbr/>MAP_<wbr/>TOOLS</span></a> | |
| <a href="types.IGlobalConfig.html#cc_agent_output_map" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>AGENT_<wbr/>OUTPUT_<wbr/>MAP</span></a> | |
| <a href="types.IGlobalConfig.html#cc_agent_output_transform" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>AGENT_<wbr/>OUTPUT_<wbr/>TRANSFORM</span></a> | |
| <a href="types.IGlobalConfig.html#cc_agent_system_prompt" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>AGENT_<wbr/>SYSTEM_<wbr/>PROMPT</span></a> | |
| <a href="types.IGlobalConfig.html#cc_autoban_enabled_by_default" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>AUTOBAN_<wbr/>ENABLED_<wbr/>BY_<wbr/>DEFAULT</span></a> | |
| <a href="types.IGlobalConfig.html#cc_banhammer_placeholder" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>BANHAMMER_<wbr/>PLACEHOLDER</span></a> | |
| <a href="types.IGlobalConfig.html#cc_default_agent_tool_validate" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>DEFAULT_<wbr/>AGENT_<wbr/>TOOL_<wbr/>VALIDATE</span></a> | |
| <a href="types.IGlobalConfig.html#cc_default_connect_operator" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>DEFAULT_<wbr/>CONNECT_<wbr/>OPERATOR</span></a> | |
| <a href="types.IGlobalConfig.html#cc_default_policy_get" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>DEFAULT_<wbr/>POLICY_<wbr/>GET?</span></a> | |
| <a href="types.IGlobalConfig.html#cc_default_policy_get_ban_clients" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>DEFAULT_<wbr/>POLICY_<wbr/>GET_<wbr/>BAN_<wbr/>CLIENTS</span></a> | |
| <a href="types.IGlobalConfig.html#cc_default_policy_set" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>DEFAULT_<wbr/>POLICY_<wbr/>SET?</span></a> | |
| <a href="types.IGlobalConfig.html#cc_default_read_embedding_cache" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>DEFAULT_<wbr/>READ_<wbr/>EMBEDDING_<wbr/>CACHE</span></a> | |
| <a href="types.IGlobalConfig.html#cc_default_state_get" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>DEFAULT_<wbr/>STATE_<wbr/>GET</span></a> | |
| <a href="types.IGlobalConfig.html#cc_default_state_set" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>DEFAULT_<wbr/>STATE_<wbr/>SET</span></a> | |
| <a href="types.IGlobalConfig.html#cc_default_storage_get" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>DEFAULT_<wbr/>STORAGE_<wbr/>GET</span></a> | |
| <a href="types.IGlobalConfig.html#cc_default_storage_set" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>DEFAULT_<wbr/>STORAGE_<wbr/>SET</span></a> | |
| <a href="types.IGlobalConfig.html#cc_default_write_embedding_cache" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>DEFAULT_<wbr/>WRITE_<wbr/>EMBEDDING_<wbr/>CACHE</span></a> | |
| <a href="types.IGlobalConfig.html#cc_empty_output_placeholders" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>EMPTY_<wbr/>OUTPUT_<wbr/>PLACEHOLDERS</span></a> | |
| <a href="types.IGlobalConfig.html#cc_enable_operator_timeout" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>ENABLE_<wbr/>OPERATOR_<wbr/>TIMEOUT</span></a> | |
| <a href="types.IGlobalConfig.html#cc_fn_plantuml" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>FN_<wbr/>PLANTUML</span></a> | |
| <a href="types.IGlobalConfig.html#cc_get_agent_history_adapter" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>GET_<wbr/>AGENT_<wbr/>HISTORY_<wbr/>ADAPTER</span></a> | |
| <a href="types.IGlobalConfig.html#cc_get_client_logger_adapter" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>GET_<wbr/>CLIENT_<wbr/>LOGGER_<wbr/>ADAPTER</span></a> | |
| <a href="types.IGlobalConfig.html#cc_keep_messages" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>KEEP_<wbr/>MESSAGES</span></a> | |
| <a href="types.IGlobalConfig.html#cc_logger_enable_console" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>LOGGER_<wbr/>ENABLE_<wbr/>CONSOLE</span></a> | |
| <a href="types.IGlobalConfig.html#cc_logger_enable_debug" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>LOGGER_<wbr/>ENABLE_<wbr/>DEBUG</span></a> | |
| <a href="types.IGlobalConfig.html#cc_logger_enable_info" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>LOGGER_<wbr/>ENABLE_<wbr/>INFO</span></a> | |
| <a href="types.IGlobalConfig.html#cc_logger_enable_log" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>LOGGER_<wbr/>ENABLE_<wbr/>LOG</span></a> | |
| <a href="types.IGlobalConfig.html#cc_max_nested_executions" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>MAX_<wbr/>NESTED_<wbr/>EXECUTIONS</span></a> | |
| <a href="types.IGlobalConfig.html#cc_max_tool_calls" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>MAX_<wbr/>TOOL_<wbr/>CALLS</span></a> | |
| <a href="types.IGlobalConfig.html#cc_name_to_title" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>NAME_<wbr/>TO_<wbr/>TITLE</span></a> | |
| <a href="types.IGlobalConfig.html#cc_persist_embedding_cache" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>PERSIST_<wbr/>EMBEDDING_<wbr/>CACHE</span></a> | |
| <a href="types.IGlobalConfig.html#cc_persist_enabled_by_default" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>PERSIST_<wbr/>ENABLED_<wbr/>BY_<wbr/>DEFAULT</span></a> | |
| <a href="types.IGlobalConfig.html#cc_persist_memory_storage" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>PERSIST_<wbr/>MEMORY_<wbr/>STORAGE</span></a> | |
| <a href="types.IGlobalConfig.html#cc_process_uuid" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>PROCESS_<wbr/>UUID</span></a> | |
| <a href="types.IGlobalConfig.html#cc_resque_strategy" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>RESQUE_<wbr/>STRATEGY</span></a> | |
| <a href="types.IGlobalConfig.html#cc_skip_posix_rename" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>SKIP_<wbr/>POSIX_<wbr/>RENAME</span></a> | |
| <a href="types.IGlobalConfig.html#cc_storage_disable_get_data" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>STORAGE_<wbr/>DISABLE_<wbr/>GET_<wbr/>DATA</span></a> | |
| <a href="types.IGlobalConfig.html#cc_storage_search_pool" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>STORAGE_<wbr/>SEARCH_<wbr/>POOL</span></a> | |
| <a href="types.IGlobalConfig.html#cc_storage_search_similarity" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>STORAGE_<wbr/>SEARCH_<wbr/>SIMILARITY</span></a> | |
| <a href="types.IGlobalConfig.html#cc_swarm_agent_changed" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>SWARM_<wbr/>AGENT_<wbr/>CHANGED</span></a> | |
| <a href="types.IGlobalConfig.html#cc_swarm_default_agent" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>SWARM_<wbr/>DEFAULT_<wbr/>AGENT</span></a> | |
| <a href="types.IGlobalConfig.html#cc_swarm_default_stack" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>SWARM_<wbr/>DEFAULT_<wbr/>STACK</span></a> | |
| <a href="types.IGlobalConfig.html#cc_swarm_stack_changed" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>SWARM_<wbr/>STACK_<wbr/>CHANGED</span></a> | |
| <a href="types.IGlobalConfig.html#cc_throw_when_navigation_recursion" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>THROW_<wbr/>WHEN_<wbr/>NAVIGATION_<wbr/>RECURSION</span></a> | |
| <a href="types.IGlobalConfig.html#cc_tool_call_exception_custom_function" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>TOOL_<wbr/>CALL_<wbr/>EXCEPTION_<wbr/>CUSTOM_<wbr/>FUNCTION</span></a> | |
| <a href="types.IGlobalConfig.html#cc_tool_call_exception_flush_prompt" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>TOOL_<wbr/>CALL_<wbr/>EXCEPTION_<wbr/>FLUSH_<wbr/>PROMPT</span></a> | |
| <a href="types.IGlobalConfig.html#cc_tool_call_exception_recomplete_prompt" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>TOOL_<wbr/>CALL_<wbr/>EXCEPTION_<wbr/>RECOMPLETE_<wbr/>PROMPT</span></a> | |
| </div></section></div></details></section></section><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Properties"><h2><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg> Properties</h2></summary><section><section class="tsd-panel tsd-member"><a id="cc_agent_default_validation" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>AGENT_<wbr/>DEFAULT_<wbr/>VALIDATION</span><a href="#cc_agent_default_validation" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_AGENT_DEFAULT_VALIDATION</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">output</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></div><div class="tsd-comment tsd-typography"><p>Default validation function for agent outputs, used in <code>ClientAgent.validate</code> (e.g., <code>RUN_FN</code>, <code>EXECUTE_FN</code>). | |
| Imported from <code>validateDefault</code>, returns null if valid or an error string if invalid, ensuring output correctness.</p> | |
| </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12705">types.d.ts:12705</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_agent_disallowed_symbols" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>AGENT_<wbr/>DISALLOWED_<wbr/>SYMBOLS</span><a href="#cc_agent_disallowed_symbols" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_AGENT_DISALLOWED_SYMBOLS</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></div><div class="tsd-comment tsd-typography"><p>Array of symbols disallowed in agent outputs, potentially used in validation or transformation logic. | |
| Includes curly braces, suggesting filtering of JSON-like structures, though not directly observed in <code>ClientAgent</code>.</p> | |
| </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12742">types.d.ts:12742</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_agent_disallowed_tags" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>AGENT_<wbr/>DISALLOWED_<wbr/>TAGS</span><a href="#cc_agent_disallowed_tags" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_AGENT_DISALLOWED_TAGS</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></div><div class="tsd-comment tsd-typography"><p>Array of XML tags disallowed in agent outputs, used with <code>CC_AGENT_OUTPUT_TRANSFORM</code> in <code>ClientAgent.transform</code>. | |
| Filters out tags like "tool_call" via <code>removeXmlTags</code> in <code>RUN_FN</code> to clean responses for downstream processing.</p> | |
| </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12737">types.d.ts:12737</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_agent_history_filter" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>AGENT_<wbr/>HISTORY_<wbr/>FILTER</span><a href="#cc_agent_history_filter" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_AGENT_HISTORY_FILTER</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">agentName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">message</span><span class="tsd-signature-symbol">:</span> <a href="types.ISwarmMessage.html" class="tsd-signature-type tsd-kind-interface">ISwarmMessage</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">boolean</span></div><div class="tsd-comment tsd-typography"><p>Filter function for agent history, used in <code>ClientAgent.history.toArrayForAgent</code> to scope messages. | |
| Ensures only relevant messages (e.g., matching <code>agentName</code> for "tool" or <code>tool_calls</code>) are included in completions.</p> | |
| </div><div class="tsd-comment tsd-typography"><div class="tsd-tag-example"><h4 class="tsd-anchor-link"><a id="example" class="tsd-anchor"></a>Example<a href="#example" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-6">filter</span><span class="hl-1"> = </span><span class="hl-0">CC_AGENT_HISTORY_FILTER</span><span class="hl-1">(</span><span class="hl-3">"agent1"</span><span class="hl-1">);</span><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-6">isRelevant</span><span class="hl-1"> = </span><span class="hl-0">filter</span><span class="hl-1">({ </span><span class="hl-2">role:</span><span class="hl-1"> </span><span class="hl-3">"tool"</span><span class="hl-1">, </span><span class="hl-2">agentName:</span><span class="hl-1"> </span><span class="hl-3">"agent1"</span><span class="hl-1"> }); </span><span class="hl-9">// true</span> | |
| </code><button type="button">Copy</button></pre> | |
| </div></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12713">types.d.ts:12713</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_agent_map_tools" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>AGENT_<wbr/>MAP_<wbr/>TOOLS</span><a href="#cc_agent_map_tools" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_AGENT_MAP_TOOLS</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">tool</span><span class="tsd-signature-symbol">:</span> <a href="types.IToolCall.html" class="tsd-signature-type tsd-kind-interface">IToolCall</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">clientId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">agentName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <a href="types.IToolCall.html" class="tsd-signature-type tsd-kind-interface">IToolCall</a><span class="tsd-signature-symbol">[]</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="types.IToolCall.html" class="tsd-signature-type tsd-kind-interface">IToolCall</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">></span></div><div class="tsd-comment tsd-typography"><p>Function to map tool calls for an agent, used in <code>ClientAgent.mapToolCalls</code> (e.g., <code>EXECUTE_FN</code>). | |
| Default implementation returns tools unchanged, allowing customization of <code>IToolCall</code> processing via <code>setConfig</code>.</p> | |
| </div><div class="tsd-comment tsd-typography"><div class="tsd-tag-example"><h4 class="tsd-anchor-link"><a id="example-1" class="tsd-anchor"></a>Example<a href="#example-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-0">setConfig</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-0">CC_AGENT_MAP_TOOLS</span><span class="hl-2">:</span><span class="hl-1"> </span><span class="hl-4">async</span><span class="hl-1"> (</span><span class="hl-2">tools</span><span class="hl-1">, </span><span class="hl-2">clientId</span><span class="hl-1">, </span><span class="hl-2">agentName</span><span class="hl-1">) </span><span class="hl-4">=></span><span class="hl-1"> </span><span class="hl-2">tools</span><span class="hl-1">.</span><span class="hl-0">map</span><span class="hl-1">(</span><span class="hl-2">t</span><span class="hl-1"> </span><span class="hl-4">=></span><span class="hl-1"> ({ ...</span><span class="hl-2">t</span><span class="hl-1">, </span><span class="hl-2">clientId</span><span class="hl-1"> }))</span><br/><span class="hl-1">});</span> | |
| </code><button type="button">Copy</button></pre> | |
| </div></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12642">types.d.ts:12642</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_agent_output_map" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>AGENT_<wbr/>OUTPUT_<wbr/>MAP</span><a href="#cc_agent_output_map" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_AGENT_OUTPUT_MAP</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">message</span><span class="tsd-signature-symbol">:</span> <a href="types.ISwarmMessage.html" class="tsd-signature-type tsd-kind-interface">ISwarmMessage</a><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <a href="types.ISwarmMessage.html" class="tsd-signature-type tsd-kind-interface">ISwarmMessage</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">object</span><span class="tsd-signature-symbol">></span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="types.ISwarmMessage.html" class="tsd-signature-type tsd-kind-interface">ISwarmMessage</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">object</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span></div><div class="tsd-comment tsd-typography"><p>Function to map model messages for agent output, used in <code>ClientAgent.map</code> (e.g., <code>RUN_FN</code>, <code>EXECUTE_FN</code>). | |
| Default implementation returns the message unchanged, allowing customization of <code>ISwarmMessage</code> via <code>setConfig</code>.</p> | |
| </div><div class="tsd-comment tsd-typography"><div class="tsd-tag-example"><h4 class="tsd-anchor-link"><a id="example-2" class="tsd-anchor"></a>Example<a href="#example-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-0">setConfig</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-0">CC_AGENT_OUTPUT_MAP</span><span class="hl-2">:</span><span class="hl-1"> </span><span class="hl-4">async</span><span class="hl-1"> (</span><span class="hl-2">msg</span><span class="hl-1">) </span><span class="hl-4">=></span><span class="hl-1"> ({ ...</span><span class="hl-2">msg</span><span class="hl-1">, </span><span class="hl-2">content:</span><span class="hl-1"> </span><span class="hl-2">msg</span><span class="hl-1">.</span><span class="hl-2">content</span><span class="hl-1">.</span><span class="hl-0">toUpperCase</span><span class="hl-1">() })</span><br/><span class="hl-1">});</span> | |
| </code><button type="button">Copy</button></pre> | |
| </div></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12727">types.d.ts:12727</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_agent_output_transform" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>AGENT_<wbr/>OUTPUT_<wbr/>TRANSFORM</span><a href="#cc_agent_output_transform" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_AGENT_OUTPUT_TRANSFORM</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">input</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">clientId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">agentName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></div><div class="tsd-comment tsd-typography"><p>Default transformation function for agent outputs, used in <code>ClientAgent.transform</code> (e.g., <code>RUN_FN</code>, <code>_emitOutput</code>). | |
| Removes XML tags via <code>removeXmlTags</code> based on <code>CC_AGENT_DISALLOWED_TAGS</code> to clean responses for consistency.</p> | |
| </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12718">types.d.ts:12718</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_agent_system_prompt" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>AGENT_<wbr/>SYSTEM_<wbr/>PROMPT</span><a href="#cc_agent_system_prompt" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_AGENT_SYSTEM_PROMPT</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></div><div class="tsd-comment tsd-typography"><p>Optional system prompt for agents, used in <code>ClientAgent.history.toArrayForAgent</code> (e.g., <code>getCompletion</code>). | |
| Undefined by default, allowing optional agent-specific instructions to be added to history via <code>setConfig</code>.</p> | |
| </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12732">types.d.ts:12732</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_autoban_enabled_by_default" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>AUTOBAN_<wbr/>ENABLED_<wbr/>BY_<wbr/>DEFAULT</span><a href="#cc_autoban_enabled_by_default" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_AUTOBAN_ENABLED_BY_DEFAULT</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div><div class="tsd-comment tsd-typography"><p>Flag to enable autobanning by default, used in <code>IPolicy</code> for automatic ban enforcement. | |
| Disabled (false) by default, allowing manual ban control unless overridden, though not directly in <code>ClientAgent</code>.</p> | |
| </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12823">types.d.ts:12823</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_banhammer_placeholder" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>BANHAMMER_<wbr/>PLACEHOLDER</span><a href="#cc_banhammer_placeholder" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_BANHAMMER_PLACEHOLDER</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><div class="tsd-comment tsd-typography"><p>Placeholder response for banned topics or actions, used in <code>IPolicy.banClient</code> enforcement. | |
| Indicates refusal to engage, enhancing policy messaging, though not directly in <code>ClientAgent</code>.</p> | |
| </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12801">types.d.ts:12801</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_default_agent_tool_validate" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>DEFAULT_<wbr/>AGENT_<wbr/>TOOL_<wbr/>VALIDATE</span><a href="#cc_default_agent_tool_validate" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_DEFAULT_AGENT_TOOL_VALIDATE</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">dto</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">agentName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">clientId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">params</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">toolCalls</span><span class="tsd-signature-symbol">:</span> <a href="types.IToolCall.html" class="tsd-signature-type tsd-kind-interface">IToolCall</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">boolean</span><br/><span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span></div><div class="tsd-comment tsd-typography"><p>Validates the tool parameters before execution. | |
| Can return synchronously or asynchronously based on validation complexity.</p> | |
| </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12913">types.d.ts:12913</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_default_connect_operator" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>DEFAULT_<wbr/>CONNECT_<wbr/>OPERATOR</span><a href="#cc_default_connect_operator" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_DEFAULT_CONNECT_OPERATOR</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">clientId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">agentName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">message</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">next</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">answer</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">DisposeFn$1</span></div><div class="tsd-comment tsd-typography"><p>Default function to connect an operator for handling messages and responses. | |
| Establishes a connection between a client and an agent, allowing messages to be sent | |
| and answers to be received via a callback mechanism.</p> | |
| </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12928">types.d.ts:12928</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_default_policy_get" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag">Optional</code><span>CC_<wbr/>DEFAULT_<wbr/>POLICY_<wbr/>GET</span><a href="#cc_default_policy_get" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_DEFAULT_POLICY_GET</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">policyName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">swarmName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">></span></div><div class="tsd-comment tsd-typography"><p>Retrieves the list of currently banned clients under this policy.</p> | |
| </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12855">types.d.ts:12855</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_default_policy_get_ban_clients" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>DEFAULT_<wbr/>POLICY_<wbr/>GET_<wbr/>BAN_<wbr/>CLIENTS</span><a href="#cc_default_policy_get_ban_clients" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_DEFAULT_POLICY_GET_BAN_CLIENTS</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">policyName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">swarmName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">></span></div><div class="tsd-comment tsd-typography"><p>Default function to get banned clients for the policy</p> | |
| </div><div class="tsd-comment tsd-typography"><div class="tsd-tag-example"><h4 class="tsd-anchor-link"><a id="example-3" class="tsd-anchor"></a>Example<a href="#example-3" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-0">setConfig</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-0">CC_DEFAULT_POLICY_GET_BAN_CLIENTS</span><span class="hl-2">:</span><span class="hl-1"> </span><span class="hl-4">async</span><span class="hl-1"> () </span><span class="hl-4">=></span><span class="hl-1"> []</span><br/><span class="hl-1">});</span> | |
| </code><button type="button">Copy</button></pre> | |
| </div></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12851">types.d.ts:12851</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_default_policy_set" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag">Optional</code><span>CC_<wbr/>DEFAULT_<wbr/>POLICY_<wbr/>SET</span><a href="#cc_default_policy_set" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_DEFAULT_POLICY_SET</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">clientIds</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">policyName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">swarmName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></div><div class="tsd-comment tsd-typography"><p>Optional function to set the list of banned clients. | |
| Overrides default ban list management if provided.</p> | |
| </div><div class="tsd-comment tsd-typography"><div class="tsd-tag-throws"><h4 class="tsd-anchor-link"><a id="throws" class="tsd-anchor"></a>Throws<a href="#throws" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>If updating the ban list fails (e.g., due to persistence issues).</p> | |
| </div></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12861">types.d.ts:12861</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_default_read_embedding_cache" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>DEFAULT_<wbr/>READ_<wbr/>EMBEDDING_<wbr/>CACHE</span><a href="#cc_default_read_embedding_cache" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_DEFAULT_READ_EMBEDDING_CACHE</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">embeddingName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">stringHash</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">></span></div><div class="tsd-comment tsd-typography"><p>Retrieves the embedding vector for a specific string hash, returning null if not found. | |
| Used to check if a precomputed embedding exists in the cache.</p> | |
| </div><div class="tsd-comment tsd-typography"><div class="tsd-tag-throws"><h4 class="tsd-anchor-link"><a id="throws-1" class="tsd-anchor"></a>Throws<a href="#throws-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>If reading from storage fails (e.g., file corruption).</p> | |
| </div></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12902">types.d.ts:12902</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_default_state_get" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>DEFAULT_<wbr/>STATE_<wbr/>GET</span><a href="#cc_default_state_get" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_DEFAULT_STATE_GET</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="">T</a> <span class="tsd-signature-symbol">=</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">clientId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">stateName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">defaultState</span><span class="tsd-signature-symbol">:</span> <a class="tsd-signature-type tsd-kind-type-parameter" href="">T</a><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="">T</a><span class="tsd-signature-symbol">></span></div><div class="tsd-comment tsd-typography"><p>Default function to get state values, used in <code>IState.getState</code> for state retrieval. | |
| Returns <code>defaultState</code> by default, allowing state retrieval to be customized via <code>setConfig</code>, though not directly in <code>ClientAgent</code>.</p> | |
| </div><div class="tsd-comment tsd-typography"><div class="tsd-tag-example"><h4 class="tsd-anchor-link"><a id="example-4" class="tsd-anchor"></a>Example<a href="#example-4" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-0">setConfig</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-0">CC_DEFAULT_STATE_GET</span><span class="hl-2">:</span><span class="hl-1"> </span><span class="hl-4">async</span><span class="hl-1"> () </span><span class="hl-4">=></span><span class="hl-1"> ({ </span><span class="hl-2">count:</span><span class="hl-1"> </span><span class="hl-8">0</span><span class="hl-1"> })</span><br/><span class="hl-1">});</span> | |
| </code><button type="button">Copy</button></pre> | |
| </div></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12843">types.d.ts:12843</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_default_state_set" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>DEFAULT_<wbr/>STATE_<wbr/>SET</span><a href="#cc_default_state_set" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_DEFAULT_STATE_SET</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="">T</a> <span class="tsd-signature-symbol">=</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">state</span><span class="tsd-signature-symbol">:</span> <a class="tsd-signature-type tsd-kind-type-parameter" href="">T</a><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">clientId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">stateName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></div><div class="tsd-comment tsd-typography"><p>Default function to set state values, used in <code>IState.setState</code> for state persistence. | |
| No-op by default, allowing state updates to be customized via <code>setConfig</code>, though not directly in <code>ClientAgent</code>.</p> | |
| </div><div class="tsd-comment tsd-typography"><div class="tsd-tag-example"><h4 class="tsd-anchor-link"><a id="example-5" class="tsd-anchor"></a>Example<a href="#example-5" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-0">setConfig</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-0">CC_DEFAULT_STATE_SET</span><span class="hl-2">:</span><span class="hl-1"> </span><span class="hl-4">async</span><span class="hl-1"> (</span><span class="hl-2">state</span><span class="hl-1">, </span><span class="hl-2">clientId</span><span class="hl-1">, </span><span class="hl-2">stateName</span><span class="hl-1">) </span><span class="hl-4">=></span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-2">console</span><span class="hl-1">.</span><span class="hl-0">log</span><span class="hl-1">(</span><span class="hl-3">`Setting </span><span class="hl-4">${</span><span class="hl-2">stateName</span><span class="hl-4">}</span><span class="hl-3"> for </span><span class="hl-4">${</span><span class="hl-2">clientId</span><span class="hl-4">}</span><span class="hl-3">:`</span><span class="hl-1">, </span><span class="hl-2">state</span><span class="hl-1">);</span><br/><span class="hl-1"> }</span><br/><span class="hl-1">});</span> | |
| </code><button type="button">Copy</button></pre> | |
| </div></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12834">types.d.ts:12834</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_default_storage_get" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>DEFAULT_<wbr/>STORAGE_<wbr/>GET</span><a href="#cc_default_storage_get" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_DEFAULT_STORAGE_GET</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="">T</a> <span class="tsd-signature-keyword">extends</span> <a href="types.IStorageData.html" class="tsd-signature-type tsd-kind-interface">IStorageData</a> <span class="tsd-signature-symbol">=</span> <a href="types.IStorageData.html" class="tsd-signature-type tsd-kind-interface">IStorageData</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">clientId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">storageName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">defaultValue</span><span class="tsd-signature-symbol">:</span> <a class="tsd-signature-type tsd-kind-type-parameter" href="">T</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="">T</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">></span></div><div class="tsd-comment tsd-typography"><p>Default function to get storage data, used in <code>IStorage.take</code> for storage retrieval. | |
| Returns <code>defaultValue</code> by default, allowing storage retrieval to be customized via <code>setConfig</code>, though not directly in <code>ClientAgent</code>.</p> | |
| </div><div class="tsd-comment tsd-typography"><div class="tsd-tag-example"><h4 class="tsd-anchor-link"><a id="example-6" class="tsd-anchor"></a>Example<a href="#example-6" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-0">setConfig</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-0">CC_DEFAULT_STORAGE_GET</span><span class="hl-2">:</span><span class="hl-1"> </span><span class="hl-4">async</span><span class="hl-1"> () </span><span class="hl-4">=></span><span class="hl-1"> [{ </span><span class="hl-2">id:</span><span class="hl-1"> </span><span class="hl-8">1</span><span class="hl-1"> }]</span><br/><span class="hl-1">});</span> | |
| </code><button type="button">Copy</button></pre> | |
| </div></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12870">types.d.ts:12870</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_default_storage_set" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>DEFAULT_<wbr/>STORAGE_<wbr/>SET</span><a href="#cc_default_storage_set" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_DEFAULT_STORAGE_SET</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="">T</a> <span class="tsd-signature-keyword">extends</span> <a href="types.IStorageData.html" class="tsd-signature-type tsd-kind-interface">IStorageData</a> <span class="tsd-signature-symbol">=</span> <a href="types.IStorageData.html" class="tsd-signature-type tsd-kind-interface">IStorageData</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">data</span><span class="tsd-signature-symbol">:</span> <a class="tsd-signature-type tsd-kind-type-parameter" href="">T</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">clientId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">storageName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></div><div class="tsd-comment tsd-typography"><p>Default function to set storage data, used in <code>IStorage.upsert</code> for storage persistence. | |
| No-op by default, allowing storage updates to be customized via <code>setConfig</code>, though not directly in <code>ClientAgent</code>.</p> | |
| </div><div class="tsd-comment tsd-typography"><div class="tsd-tag-example"><h4 class="tsd-anchor-link"><a id="example-7" class="tsd-anchor"></a>Example<a href="#example-7" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-0">setConfig</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-0">CC_DEFAULT_STORAGE_SET</span><span class="hl-2">:</span><span class="hl-1"> </span><span class="hl-4">async</span><span class="hl-1"> (</span><span class="hl-2">data</span><span class="hl-1">, </span><span class="hl-2">clientId</span><span class="hl-1">, </span><span class="hl-2">storageName</span><span class="hl-1">) </span><span class="hl-4">=></span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-2">console</span><span class="hl-1">.</span><span class="hl-0">log</span><span class="hl-1">(</span><span class="hl-3">`Setting </span><span class="hl-4">${</span><span class="hl-2">storageName</span><span class="hl-4">}</span><span class="hl-3"> for </span><span class="hl-4">${</span><span class="hl-2">clientId</span><span class="hl-4">}</span><span class="hl-3">:`</span><span class="hl-1">, </span><span class="hl-2">data</span><span class="hl-1">);</span><br/><span class="hl-1"> }</span><br/><span class="hl-1">});</span> | |
| </code><button type="button">Copy</button></pre> | |
| </div></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12881">types.d.ts:12881</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_default_write_embedding_cache" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>DEFAULT_<wbr/>WRITE_<wbr/>EMBEDDING_<wbr/>CACHE</span><a href="#cc_default_write_embedding_cache" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_DEFAULT_WRITE_EMBEDDING_CACHE</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">embeddings</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">embeddingName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">stringHash</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></div><div class="tsd-comment tsd-typography"><p>Stores an embedding vector for a specific string hash, persisting it for future retrieval. | |
| Used to cache computed embeddings to avoid redundant processing.</p> | |
| </div><div class="tsd-comment tsd-typography"><div class="tsd-tag-throws"><h4 class="tsd-anchor-link"><a id="throws-2" class="tsd-anchor"></a>Throws<a href="#throws-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>If writing to storage fails (e.g., permissions or disk space).</p> | |
| </div></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12908">types.d.ts:12908</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_empty_output_placeholders" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>EMPTY_<wbr/>OUTPUT_<wbr/>PLACEHOLDERS</span><a href="#cc_empty_output_placeholders" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_EMPTY_OUTPUT_PLACEHOLDERS</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></div><div class="tsd-comment tsd-typography"><p>An array of placeholder responses for empty model outputs, used in <code>ClientAgent.createPlaceholder</code> to greet or prompt the user. | |
| Randomly selected in <code>ClientAgent._resurrectModel</code> or <code>RUN_FN</code> when output is empty, enhancing user experience by avoiding silent failures.</p> | |
| </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12623">types.d.ts:12623</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_enable_operator_timeout" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>ENABLE_<wbr/>OPERATOR_<wbr/>TIMEOUT</span><a href="#cc_enable_operator_timeout" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_ENABLE_OPERATOR_TIMEOUT</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div><div class="tsd-comment tsd-typography"><p>Flag to enable operator timeout, used in <code>ClientOperator</code> for message processing.</p> | |
| </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12932">types.d.ts:12932</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_fn_plantuml" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>FN_<wbr/>PLANTUML</span><a href="#cc_fn_plantuml" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_FN_PLANTUML</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">uml</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></div><div class="tsd-comment tsd-typography"><p>Function to process PlantUML diagrams, potentially for visualization purposes. | |
| Default returns an empty string, allowing custom UML rendering logic via <code>setConfig</code>, though not directly in <code>ClientAgent</code>.</p> | |
| </div><div class="tsd-comment tsd-typography"><div class="tsd-tag-example"><h4 class="tsd-anchor-link"><a id="example-8" class="tsd-anchor"></a>Example<a href="#example-8" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-0">setConfig</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-0">CC_FN_PLANTUML</span><span class="hl-2">:</span><span class="hl-1"> </span><span class="hl-4">async</span><span class="hl-1"> (</span><span class="hl-2">uml</span><span class="hl-1">) </span><span class="hl-4">=></span><span class="hl-1"> </span><span class="hl-3">`Processed: </span><span class="hl-4">${</span><span class="hl-2">uml</span><span class="hl-4">}</span><span class="hl-3">`</span><br/><span class="hl-1">});</span> | |
| </code><button type="button">Copy</button></pre> | |
| </div></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12791">types.d.ts:12791</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_get_agent_history_adapter" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>GET_<wbr/>AGENT_<wbr/>HISTORY_<wbr/>ADAPTER</span><a href="#cc_get_agent_history_adapter" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_GET_AGENT_HISTORY_ADAPTER</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">clientId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">agentName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <a href="types.IHistoryAdapter.html" class="tsd-signature-type tsd-kind-interface">IHistoryAdapter</a></div><div class="tsd-comment tsd-typography"><p>Factory function to provide a history adapter for an agent, used in <code>ClientAgent.history</code> (e.g., <code>getCompletion</code>). | |
| Returns <code>HistoryAdapter</code> by default, implementing <code>IHistoryAdapter</code> for message storage and retrieval.</p> | |
| </div><div class="tsd-comment tsd-typography"><div class="tsd-tag-example"><h4 class="tsd-anchor-link"><a id="example-9" class="tsd-anchor"></a>Example<a href="#example-9" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-0">setConfig</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-0">CC_GET_AGENT_HISTORY_ADAPTER</span><span class="hl-2">:</span><span class="hl-1"> () </span><span class="hl-4">=></span><span class="hl-1"> </span><span class="hl-2">CustomHistoryAdapter</span><br/><span class="hl-1">});</span> | |
| </code><button type="button">Copy</button></pre> | |
| </div></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12651">types.d.ts:12651</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_get_client_logger_adapter" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>GET_<wbr/>CLIENT_<wbr/>LOGGER_<wbr/>ADAPTER</span><a href="#cc_get_client_logger_adapter" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_GET_CLIENT_LOGGER_ADAPTER</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">()</span> <span class="tsd-signature-symbol">=></span> <a href="types.ILoggerAdapter.html" class="tsd-signature-type tsd-kind-interface">ILoggerAdapter</a></div><div class="tsd-comment tsd-typography"><p>Factory function to provide a logger adapter for clients, used in <code>ClientAgent.logger</code> (e.g., debug logging). | |
| Returns <code>LoggerAdapter</code> by default, implementing <code>ILoggerAdapter</code> for logging control across the system.</p> | |
| </div><div class="tsd-comment tsd-typography"><div class="tsd-tag-example"><h4 class="tsd-anchor-link"><a id="example-10" class="tsd-anchor"></a>Example<a href="#example-10" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-0">setConfig</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-0">CC_GET_CLIENT_LOGGER_ADAPTER</span><span class="hl-2">:</span><span class="hl-1"> () </span><span class="hl-4">=></span><span class="hl-1"> </span><span class="hl-2">CustomLoggerAdapter</span><br/><span class="hl-1">});</span> | |
| </code><button type="button">Copy</button></pre> | |
| </div></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12660">types.d.ts:12660</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_keep_messages" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>KEEP_<wbr/>MESSAGES</span><a href="#cc_keep_messages" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_KEEP_MESSAGES</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><div class="tsd-comment tsd-typography"><p>Maximum number of messages to retain in history, used indirectly in <code>ClientAgent.history</code> management. | |
| Limits history to 15 messages, though not explicitly enforced in provided <code>ClientAgent</code> code.</p> | |
| </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12628">types.d.ts:12628</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_logger_enable_console" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>LOGGER_<wbr/>ENABLE_<wbr/>CONSOLE</span><a href="#cc_logger_enable_console" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_LOGGER_ENABLE_CONSOLE</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div><div class="tsd-comment tsd-typography"><p>Flag to enable console logging, used in <code>ClientAgent.logger</code> for direct console output. | |
| Disabled by default (false), allowing logs to be redirected via <code>ILoggerAdapter</code>.</p> | |
| </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12772">types.d.ts:12772</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_logger_enable_debug" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>LOGGER_<wbr/>ENABLE_<wbr/>DEBUG</span><a href="#cc_logger_enable_debug" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_LOGGER_ENABLE_DEBUG</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div><div class="tsd-comment tsd-typography"><p>Flag to enable debug-level logging, used extensively in <code>ClientAgent.logger.debug</code> (e.g., <code>RUN_FN</code>, <code>EXECUTE_FN</code>). | |
| Disabled by default (false), gating detailed debug output in <code>ILoggerAdapter</code>.</p> | |
| </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12762">types.d.ts:12762</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_logger_enable_info" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>LOGGER_<wbr/>ENABLE_<wbr/>INFO</span><a href="#cc_logger_enable_info" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_LOGGER_ENABLE_INFO</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div><div class="tsd-comment tsd-typography"><p>Flag to enable info-level logging, used in <code>ClientAgent.logger</code> for informational logs. | |
| Disabled by default (false), controlling verbosity of <code>ILoggerAdapter</code> logs.</p> | |
| </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12757">types.d.ts:12757</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_logger_enable_log" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>LOGGER_<wbr/>ENABLE_<wbr/>LOG</span><a href="#cc_logger_enable_log" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_LOGGER_ENABLE_LOG</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div><div class="tsd-comment tsd-typography"><p>Flag to enable general logging, used in <code>ClientAgent.logger</code> for basic log output. | |
| Enabled by default (true), ensuring core logging functionality in <code>ILoggerAdapter</code>.</p> | |
| </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12767">types.d.ts:12767</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_max_nested_executions" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>MAX_<wbr/>NESTED_<wbr/>EXECUTIONS</span><a href="#cc_max_nested_executions" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_MAX_NESTED_EXECUTIONS</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><div class="tsd-comment tsd-typography"><p>When the model run more than 10 nested tool call iterations including | |
| navigations throw an exeption</p> | |
| </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12941">types.d.ts:12941</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_max_tool_calls" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>MAX_<wbr/>TOOL_<wbr/>CALLS</span><a href="#cc_max_tool_calls" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_MAX_TOOL_CALLS</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><div class="tsd-comment tsd-typography"><p>Maximum number of tool calls allowed per execution, used in <code>ClientAgent.EXECUTE_FN</code> to cap <code>toolCalls</code>. | |
| Limits to 1 tool call by default, preventing excessive tool invocation loops in a single run.</p> | |
| </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12633">types.d.ts:12633</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_name_to_title" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>NAME_<wbr/>TO_<wbr/>TITLE</span><a href="#cc_name_to_title" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_NAME_TO_TITLE</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">name</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">string</span></div><div class="tsd-comment tsd-typography"><p>Utility function to convert names to title case, used for UI or logging readability. | |
| Imported from <code>nameToTitle</code>, enhancing presentation of agent or swarm names, though not directly in <code>ClientAgent</code>.</p> | |
| </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12782">types.d.ts:12782</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_persist_embedding_cache" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>PERSIST_<wbr/>EMBEDDING_<wbr/>CACHE</span><a href="#cc_persist_embedding_cache" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_PERSIST_EMBEDDING_CACHE</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div><div class="tsd-comment tsd-typography"><p>Flag to enable persistent cache for <code>embeddings</code>. Will allow to reduce costs while using openai | |
| Disabled (false) by default which faster for ollama local embeddings</p> | |
| </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12896">types.d.ts:12896</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_persist_enabled_by_default" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>PERSIST_<wbr/>ENABLED_<wbr/>BY_<wbr/>DEFAULT</span><a href="#cc_persist_enabled_by_default" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_PERSIST_ENABLED_BY_DEFAULT</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div><div class="tsd-comment tsd-typography"><p>Flag to enable persistence by default, used in <code>IStorage</code> or <code>IState</code> initialization. | |
| Enabled (true) by default, suggesting data retention unless overridden, though not directly in <code>ClientAgent</code>.</p> | |
| </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12818">types.d.ts:12818</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_persist_memory_storage" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>PERSIST_<wbr/>MEMORY_<wbr/>STORAGE</span><a href="#cc_persist_memory_storage" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_PERSIST_MEMORY_STORAGE</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div><div class="tsd-comment tsd-typography"><p>Flag to enable persistent storage for <code>Schema.readValue</code> and <code>Schema.writeValue</code>, separate from general persistence. | |
| Enabled (true) by default, ensuring memory storage persistence unless overridden.</p> | |
| </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12891">types.d.ts:12891</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_process_uuid" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>PROCESS_<wbr/>UUID</span><a href="#cc_process_uuid" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_PROCESS_UUID</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><div class="tsd-comment tsd-typography"><p>Unique identifier for the current process, used system-wide for tracking or logging. | |
| Generated via <code>randomString</code>, providing a process-specific UUID, though not directly in <code>ClientAgent</code>.</p> | |
| </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12796">types.d.ts:12796</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_resque_strategy" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>RESQUE_<wbr/>STRATEGY</span><a href="#cc_resque_strategy" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_RESQUE_STRATEGY</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"custom"</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"flush"</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"recomplete"</span></div><div class="tsd-comment tsd-typography"><p>Strategy for handling model resurrection, used in <code>ClientAgent._resurrectModel</code> and <code>getCompletion</code>. | |
| Options: "flush" (reset conversation), "recomplete" (retry tool calls), "custom" (user-defined); determines recovery approach for invalid outputs or tool calls.</p> | |
| </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12777">types.d.ts:12777</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_skip_posix_rename" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>SKIP_<wbr/>POSIX_<wbr/>RENAME</span><a href="#cc_skip_posix_rename" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_SKIP_POSIX_RENAME</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div><div class="tsd-comment tsd-typography"><p>Flag to skip POSIX-style renaming, potentially for file operations in persistence layers. | |
| Disabled (false) by default, ensuring standard renaming unless overridden, though not directly in <code>ClientAgent</code>.</p> | |
| </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12886">types.d.ts:12886</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_storage_disable_get_data" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>STORAGE_<wbr/>DISABLE_<wbr/>GET_<wbr/>DATA</span><a href="#cc_storage_disable_get_data" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_STORAGE_DISABLE_GET_DATA</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div><div class="tsd-comment tsd-typography"><p>Disable fetch of data from all storages. Quite usefull for unit tests</p> | |
| </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12936">types.d.ts:12936</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_storage_search_pool" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>STORAGE_<wbr/>SEARCH_<wbr/>POOL</span><a href="#cc_storage_search_pool" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_STORAGE_SEARCH_POOL</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><div class="tsd-comment tsd-typography"><p>Maximum number of results for storage searches, used in <code>IStorage.take</code> to limit retrieval. | |
| Caps search pool at 5 items by default, though not directly observed in <code>ClientAgent</code>.</p> | |
| </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12752">types.d.ts:12752</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_storage_search_similarity" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>STORAGE_<wbr/>SEARCH_<wbr/>SIMILARITY</span><a href="#cc_storage_search_similarity" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_STORAGE_SEARCH_SIMILARITY</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><div class="tsd-comment tsd-typography"><p>Similarity threshold for storage searches, used in <code>IStorage.take</code> for similarity-based retrieval. | |
| Set to 0.65, defining the minimum similarity score for search results, though not directly in <code>ClientAgent</code>.</p> | |
| </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12747">types.d.ts:12747</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_swarm_agent_changed" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>SWARM_<wbr/>AGENT_<wbr/>CHANGED</span><a href="#cc_swarm_agent_changed" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_SWARM_AGENT_CHANGED</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">clientId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">agentName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">swarmName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></div><div class="tsd-comment tsd-typography"><p>Callback function triggered when the active agent changes in a swarm, used in swarm-related logic (e.g., <code>ISwarmParams</code>). | |
| Default implementation is a no-op, observed indirectly in <code>ClientAgent.commitAgentChange</code> via <code>IBus.emit "commit-agent-change"</code>.</p> | |
| </div><div class="tsd-comment tsd-typography"><div class="tsd-tag-example"><h4 class="tsd-anchor-link"><a id="example-11" class="tsd-anchor"></a>Example<a href="#example-11" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-0">setConfig</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-0">CC_SWARM_AGENT_CHANGED</span><span class="hl-2">:</span><span class="hl-1"> </span><span class="hl-4">async</span><span class="hl-1"> (</span><span class="hl-2">clientId</span><span class="hl-1">, </span><span class="hl-2">agentName</span><span class="hl-1">, </span><span class="hl-2">swarmName</span><span class="hl-1">) </span><span class="hl-4">=></span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-2">console</span><span class="hl-1">.</span><span class="hl-0">log</span><span class="hl-1">(</span><span class="hl-3">`</span><span class="hl-4">${</span><span class="hl-2">agentName</span><span class="hl-4">}</span><span class="hl-3"> is now active for </span><span class="hl-4">${</span><span class="hl-2">clientId</span><span class="hl-4">}</span><span class="hl-3"> in </span><span class="hl-4">${</span><span class="hl-2">swarmName</span><span class="hl-4">}</span><span class="hl-3">`</span><span class="hl-1">);</span><br/><span class="hl-1"> }</span><br/><span class="hl-1">});</span> | |
| </code><button type="button">Copy</button></pre> | |
| </div></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12671">types.d.ts:12671</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_swarm_default_agent" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>SWARM_<wbr/>DEFAULT_<wbr/>AGENT</span><a href="#cc_swarm_default_agent" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_SWARM_DEFAULT_AGENT</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">clientId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">swarmName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">defaultAgent</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></div><div class="tsd-comment tsd-typography"><p>Function to determine the default agent for a swarm, used in swarm initialization (e.g., <code>ISwarmParams</code>). | |
| Default implementation returns the provided <code>defaultAgent</code>, aligning with swarm-agent hierarchy logic, though not directly observed in <code>ClientAgent</code>.</p> | |
| </div><div class="tsd-comment tsd-typography"><div class="tsd-tag-example"><h4 class="tsd-anchor-link"><a id="example-12" class="tsd-anchor"></a>Example<a href="#example-12" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-0">setConfig</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-0">CC_SWARM_DEFAULT_AGENT</span><span class="hl-2">:</span><span class="hl-1"> </span><span class="hl-4">async</span><span class="hl-1"> (</span><span class="hl-2">clientId</span><span class="hl-1">, </span><span class="hl-2">swarmName</span><span class="hl-1">) </span><span class="hl-4">=></span><span class="hl-1"> </span><span class="hl-3">"customAgent"</span><br/><span class="hl-1">});</span> | |
| </code><button type="button">Copy</button></pre> | |
| </div></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12680">types.d.ts:12680</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_swarm_default_stack" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>SWARM_<wbr/>DEFAULT_<wbr/>STACK</span><a href="#cc_swarm_default_stack" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_SWARM_DEFAULT_STACK</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">clientId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">swarmName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">></span></div><div class="tsd-comment tsd-typography"><p>Function to provide the default navigation stack for a swarm, used in <code>ISwarmParams</code> initialization. | |
| Default implementation returns an empty array, part of swarm navigation setup, though not directly used in <code>ClientAgent</code>.</p> | |
| </div><div class="tsd-comment tsd-typography"><div class="tsd-tag-example"><h4 class="tsd-anchor-link"><a id="example-13" class="tsd-anchor"></a>Example<a href="#example-13" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-0">setConfig</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-0">CC_SWARM_DEFAULT_STACK</span><span class="hl-2">:</span><span class="hl-1"> </span><span class="hl-4">async</span><span class="hl-1"> () </span><span class="hl-4">=></span><span class="hl-1"> [</span><span class="hl-3">"initialAgent"</span><span class="hl-1">]</span><br/><span class="hl-1">});</span> | |
| </code><button type="button">Copy</button></pre> | |
| </div></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12689">types.d.ts:12689</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_swarm_stack_changed" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>SWARM_<wbr/>STACK_<wbr/>CHANGED</span><a href="#cc_swarm_stack_changed" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_SWARM_STACK_CHANGED</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">clientId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">navigationStack</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">swarmName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></div><div class="tsd-comment tsd-typography"><p>Callback function triggered when the navigation stack changes in a swarm, used in <code>ISwarmParams</code> (e.g., <code>navigationPop</code>). | |
| Default implementation is a no-op, indirectly related to <code>ClientAgent.commitAgentChange</code> for stack updates.</p> | |
| </div><div class="tsd-comment tsd-typography"><div class="tsd-tag-example"><h4 class="tsd-anchor-link"><a id="example-14" class="tsd-anchor"></a>Example<a href="#example-14" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-0">setConfig</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-0">CC_SWARM_STACK_CHANGED</span><span class="hl-2">:</span><span class="hl-1"> </span><span class="hl-4">async</span><span class="hl-1"> (</span><span class="hl-2">clientId</span><span class="hl-1">, </span><span class="hl-2">stack</span><span class="hl-1">, </span><span class="hl-2">swarmName</span><span class="hl-1">) </span><span class="hl-4">=></span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-2">console</span><span class="hl-1">.</span><span class="hl-0">log</span><span class="hl-1">(</span><span class="hl-3">`Stack updated for </span><span class="hl-4">${</span><span class="hl-2">clientId</span><span class="hl-4">}</span><span class="hl-3"> in </span><span class="hl-4">${</span><span class="hl-2">swarmName</span><span class="hl-4">}</span><span class="hl-3">: </span><span class="hl-4">${</span><span class="hl-2">stack</span><span class="hl-4">}</span><span class="hl-3">`</span><span class="hl-1">);</span><br/><span class="hl-1"> }</span><br/><span class="hl-1">});</span> | |
| </code><button type="button">Copy</button></pre> | |
| </div></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12700">types.d.ts:12700</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_throw_when_navigation_recursion" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>THROW_<wbr/>WHEN_<wbr/>NAVIGATION_<wbr/>RECURSION</span><a href="#cc_throw_when_navigation_recursion" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_THROW_WHEN_NAVIGATION_RECURSION</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div><div class="tsd-comment tsd-typography"><p>Throw an error if agents being changed recursively</p> | |
| </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12922">types.d.ts:12922</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_tool_call_exception_custom_function" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>TOOL_<wbr/>CALL_<wbr/>EXCEPTION_<wbr/>CUSTOM_<wbr/>FUNCTION</span><a href="#cc_tool_call_exception_custom_function" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_TOOL_CALL_EXCEPTION_CUSTOM_FUNCTION</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">clientId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">agentName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="types.ISwarmMessage.html" class="tsd-signature-type tsd-kind-interface">ISwarmMessage</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">object</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span></div><div class="tsd-comment tsd-typography"><p>A custom function to handle tool call exceptions by returning a model message or null, used in <code>ClientAgent.getCompletion</code> with the "custom" <code>CC_RESQUE_STRATEGY</code>. | |
| Default implementation returns null, allowing override via <code>setConfig</code> to implement specific recovery logic tailored to the application.</p> | |
| </div><div class="tsd-comment tsd-typography"><div class="tsd-tag-example"><h4 class="tsd-anchor-link"><a id="example-15" class="tsd-anchor"></a>Example<a href="#example-15" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-0">setConfig</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-0">CC_TOOL_CALL_EXCEPTION_CUSTOM_FUNCTION</span><span class="hl-2">:</span><span class="hl-1"> </span><span class="hl-4">async</span><span class="hl-1"> (</span><span class="hl-2">clientId</span><span class="hl-1">, </span><span class="hl-2">agentName</span><span class="hl-1">) </span><span class="hl-4">=></span><span class="hl-1"> ({</span><br/><span class="hl-1"> </span><span class="hl-2">role:</span><span class="hl-1"> </span><span class="hl-3">"system"</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-2">content:</span><span class="hl-1"> </span><span class="hl-3">"Tool call corrected for "</span><span class="hl-1"> + </span><span class="hl-2">agentName</span><br/><span class="hl-1"> })</span><br/><span class="hl-1">});</span> | |
| </code><button type="button">Copy</button></pre> | |
| </div></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12813">types.d.ts:12813</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_tool_call_exception_flush_prompt" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>TOOL_<wbr/>CALL_<wbr/>EXCEPTION_<wbr/>FLUSH_<wbr/>PROMPT</span><a href="#cc_tool_call_exception_flush_prompt" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_TOOL_CALL_EXCEPTION_FLUSH_PROMPT</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><div class="tsd-comment tsd-typography"><p>A prompt used to flush the conversation when tool call exceptions occur, specifically for troubleshooting in <code>llama3.1:8b</code> models. | |
| Applied in <code>ClientAgent._resurrectModel</code> with the "flush" strategy to reset the conversation state. Requires <code>CC_OLLAMA_EMIT_TOOL_PROTOCOL</code> to be disabled.</p> | |
| </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12613">types.d.ts:12613</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="cc_tool_call_exception_recomplete_prompt" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>CC_<wbr/>TOOL_<wbr/>CALL_<wbr/>EXCEPTION_<wbr/>RECOMPLETE_<wbr/>PROMPT</span><a href="#cc_tool_call_exception_recomplete_prompt" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">CC_TOOL_CALL_EXCEPTION_RECOMPLETE_PROMPT</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><div class="tsd-comment tsd-typography"><p>A multi-line prompt to recomplete invalid tool calls, designed as a fix for intermittent issues in <code>IlyaGusev/saiga_yandexgpt_8b_gguf</code> (LMStudio). | |
| Used in <code>ClientAgent.getCompletion</code> with the "recomplete" strategy, instructing the model to analyze, correct, and explain tool call errors.</p> | |
| </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/tripolskypetr/agent-swarm-kit/blob/c845cde9491ea2a2ff67712853da3ae248bd7d92/types.d.ts#L12618">types.d.ts:12618</a></li></ul></aside></section></section></details></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>On This Page</h3></summary><div class="tsd-accordion-details"><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Properties"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Properties</summary><div><a href="#cc_agent_default_validation" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>AGENT_<wbr/>DEFAULT_<wbr/>VALIDATION</span></a><a href="#cc_agent_disallowed_symbols" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>AGENT_<wbr/>DISALLOWED_<wbr/>SYMBOLS</span></a><a href="#cc_agent_disallowed_tags" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>AGENT_<wbr/>DISALLOWED_<wbr/>TAGS</span></a><a href="#cc_agent_history_filter" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>AGENT_<wbr/>HISTORY_<wbr/>FILTER</span></a><a href="#cc_agent_map_tools" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>AGENT_<wbr/>MAP_<wbr/>TOOLS</span></a><a href="#cc_agent_output_map" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>AGENT_<wbr/>OUTPUT_<wbr/>MAP</span></a><a href="#cc_agent_output_transform" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>AGENT_<wbr/>OUTPUT_<wbr/>TRANSFORM</span></a><a href="#cc_agent_system_prompt" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>AGENT_<wbr/>SYSTEM_<wbr/>PROMPT</span></a><a href="#cc_autoban_enabled_by_default" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>AUTOBAN_<wbr/>ENABLED_<wbr/>BY_<wbr/>DEFAULT</span></a><a href="#cc_banhammer_placeholder" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>BANHAMMER_<wbr/>PLACEHOLDER</span></a><a href="#cc_default_agent_tool_validate" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>DEFAULT_<wbr/>AGENT_<wbr/>TOOL_<wbr/>VALIDATE</span></a><a href="#cc_default_connect_operator" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>DEFAULT_<wbr/>CONNECT_<wbr/>OPERATOR</span></a><a href="#cc_default_policy_get" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>DEFAULT_<wbr/>POLICY_<wbr/>GET</span></a><a href="#cc_default_policy_get_ban_clients" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>DEFAULT_<wbr/>POLICY_<wbr/>GET_<wbr/>BAN_<wbr/>CLIENTS</span></a><a href="#cc_default_policy_set" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>DEFAULT_<wbr/>POLICY_<wbr/>SET</span></a><a href="#cc_default_read_embedding_cache" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>DEFAULT_<wbr/>READ_<wbr/>EMBEDDING_<wbr/>CACHE</span></a><a href="#cc_default_state_get" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>DEFAULT_<wbr/>STATE_<wbr/>GET</span></a><a href="#cc_default_state_set" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>DEFAULT_<wbr/>STATE_<wbr/>SET</span></a><a href="#cc_default_storage_get" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>DEFAULT_<wbr/>STORAGE_<wbr/>GET</span></a><a href="#cc_default_storage_set" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>DEFAULT_<wbr/>STORAGE_<wbr/>SET</span></a><a href="#cc_default_write_embedding_cache" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>DEFAULT_<wbr/>WRITE_<wbr/>EMBEDDING_<wbr/>CACHE</span></a><a href="#cc_empty_output_placeholders" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>EMPTY_<wbr/>OUTPUT_<wbr/>PLACEHOLDERS</span></a><a href="#cc_enable_operator_timeout" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>ENABLE_<wbr/>OPERATOR_<wbr/>TIMEOUT</span></a><a href="#cc_fn_plantuml" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>FN_<wbr/>PLANTUML</span></a><a href="#cc_get_agent_history_adapter" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>GET_<wbr/>AGENT_<wbr/>HISTORY_<wbr/>ADAPTER</span></a><a href="#cc_get_client_logger_adapter" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>GET_<wbr/>CLIENT_<wbr/>LOGGER_<wbr/>ADAPTER</span></a><a href="#cc_keep_messages" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>KEEP_<wbr/>MESSAGES</span></a><a href="#cc_logger_enable_console" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>LOGGER_<wbr/>ENABLE_<wbr/>CONSOLE</span></a><a href="#cc_logger_enable_debug" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>LOGGER_<wbr/>ENABLE_<wbr/>DEBUG</span></a><a href="#cc_logger_enable_info" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>LOGGER_<wbr/>ENABLE_<wbr/>INFO</span></a><a href="#cc_logger_enable_log" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>LOGGER_<wbr/>ENABLE_<wbr/>LOG</span></a><a href="#cc_max_nested_executions" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>MAX_<wbr/>NESTED_<wbr/>EXECUTIONS</span></a><a href="#cc_max_tool_calls" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>MAX_<wbr/>TOOL_<wbr/>CALLS</span></a><a href="#cc_name_to_title" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>NAME_<wbr/>TO_<wbr/>TITLE</span></a><a href="#cc_persist_embedding_cache" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>PERSIST_<wbr/>EMBEDDING_<wbr/>CACHE</span></a><a href="#cc_persist_enabled_by_default" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>PERSIST_<wbr/>ENABLED_<wbr/>BY_<wbr/>DEFAULT</span></a><a href="#cc_persist_memory_storage" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>PERSIST_<wbr/>MEMORY_<wbr/>STORAGE</span></a><a href="#cc_process_uuid" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>PROCESS_<wbr/>UUID</span></a><a href="#cc_resque_strategy" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>RESQUE_<wbr/>STRATEGY</span></a><a href="#cc_skip_posix_rename" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>SKIP_<wbr/>POSIX_<wbr/>RENAME</span></a><a href="#cc_storage_disable_get_data" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>STORAGE_<wbr/>DISABLE_<wbr/>GET_<wbr/>DATA</span></a><a href="#cc_storage_search_pool" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>STORAGE_<wbr/>SEARCH_<wbr/>POOL</span></a><a href="#cc_storage_search_similarity" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>STORAGE_<wbr/>SEARCH_<wbr/>SIMILARITY</span></a><a href="#cc_swarm_agent_changed" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>SWARM_<wbr/>AGENT_<wbr/>CHANGED</span></a><a href="#cc_swarm_default_agent" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>SWARM_<wbr/>DEFAULT_<wbr/>AGENT</span></a><a href="#cc_swarm_default_stack" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>SWARM_<wbr/>DEFAULT_<wbr/>STACK</span></a><a href="#cc_swarm_stack_changed" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>SWARM_<wbr/>STACK_<wbr/>CHANGED</span></a><a href="#cc_throw_when_navigation_recursion" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>THROW_<wbr/>WHEN_<wbr/>NAVIGATION_<wbr/>RECURSION</span></a><a href="#cc_tool_call_exception_custom_function" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>TOOL_<wbr/>CALL_<wbr/>EXCEPTION_<wbr/>CUSTOM_<wbr/>FUNCTION</span></a><a href="#cc_tool_call_exception_flush_prompt" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>TOOL_<wbr/>CALL_<wbr/>EXCEPTION_<wbr/>FLUSH_<wbr/>PROMPT</span></a><a href="#cc_tool_call_exception_recomplete_prompt" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>CC_<wbr/>TOOL_<wbr/>CALL_<wbr/>EXCEPTION_<wbr/>RECOMPLETE_<wbr/>PROMPT</span></a></div></details></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">agent-swarm-kit</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html> | |
| <!-- Yandex.Metrika counter --> | |
| <script type="text/javascript" > | |
| (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; | |
| m[i].l=1*new Date(); | |
| for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }} | |
| k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)}) | |
| (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym"); | |
| ym(100273846, "init", { | |
| clickmap:true, | |
| trackLinks:true, | |
| accurateTrackBounce:true, | |
| webvisor:true, | |
| ecommerce:"dataLayer" | |
| }); | |
| </script> | |
| <noscript><div><img src="https://mc.yandex.ru/watch/100273846" style="position:absolute; left:-9999px;" alt="" /></div></noscript> | |
| <!-- /Yandex.Metrika counter --> | |
| <!-- Google tag (gtag.js) --> | |
| <script async src="https://www.googletagmanager.com/gtag/js?id=G-85RYYZDT35"></script> | |
| <script> | |
| window.dataLayer = window.dataLayer || []; | |
| function gtag(){dataLayer.push(arguments);} | |
| gtag('js', new Date()); | |
| gtag('config', 'G-85RYYZDT35'); | |
| </script> | |