agents/agents-core/ai.koog.agents.core.feature.handler.strategy/-strategy-event-handler/index.html (210 lines of code) (raw):

<!doctype html> <html class="no-js" lang="en"> <head> <meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8"> <title>StrategyEventHandler</title> <link href="../../../../images/logo-icon.svg" rel="icon" type="image/svg"><script>var pathToRoot = "../../../../";</script> <script>document.documentElement.classList.replace("no-js", "js");</script> <script>const storage = localStorage.getItem("dokka-dark-mode") if (storage == null) { const osDarkSchemePreferred = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches if (osDarkSchemePreferred === true) { document.getElementsByTagName("html")[0].classList.add("theme-dark") } } else { const savedDarkMode = JSON.parse(storage) if (savedDarkMode === true) { document.getElementsByTagName("html")[0].classList.add("theme-dark") } } </script> <script type="text/javascript" src="https://unpkg.com/kotlin-playground@1/dist/playground.min.js" async></script> <script type="text/javascript" src="../../../../scripts/sourceset_dependencies.js" async></script> <link href="../../../../styles/style.css" rel="Stylesheet"> <link href="../../../../styles/main.css" rel="Stylesheet"> <link href="../../../../styles/prism.css" rel="Stylesheet"> <link href="../../../../styles/logo-styles.css" rel="Stylesheet"> <link href="../../../../ui-kit/ui-kit.min.css" rel="Stylesheet"> <script type="text/javascript" src="../../../../scripts/safe-local-storage_blocking.js"></script> <script type="text/javascript" src="../../../../scripts/navigation-loader.js" async></script> <script type="text/javascript" src="../../../../scripts/platform-content-handler.js" async></script> <script type="text/javascript" src="../../../../scripts/main.js" defer></script> <script type="text/javascript" src="../../../../scripts/prism.js" async></script> <script type="text/javascript" src="../../../../ui-kit/ui-kit.min.js" defer></script></head> <body> <div class="root"> <header class="navigation theme-dark" id="navigation-wrapper" role="banner"> <a class="library-name--link" href="../../../../index.html" tabindex="1"> koog </a> <button class="navigation-controls--btn navigation-controls--btn_toc ui-kit_mobile-only" id="toc-toggle" type="button">Toggle table of contents </button> <div class="navigation-controls--break ui-kit_mobile-only"></div> <div class="library-version" id="library-version">0.6.0-SNAPSHOT </div> <div class="navigation-controls"> <ul class="filter-section filter-section_loading" id="filter-section" aria-label="Target filter"> <button class="platform-tag platform-selector common-like" data-active="" aria-pressed="true" data-filter=":agents:agents-core/commonMain">common</button> <div class="dropdown filter-section--dropdown" data-role="dropdown" id="filter-section-dropdown"> <button class="button button_dropdown filter-section--dropdown-toggle" role="combobox" data-role="dropdown-toggle" aria-controls="platform-tags-listbox" aria-haspopup="listbox" aria-expanded="false" aria-label="Toggle source sets"></button> <ul role="listbox" id="platform-tags-listbox" class="dropdown--list" data-role="dropdown-listbox" aria-label="Target filter"> <div class="dropdown--header"><span>Target filter</span> <button class="button" data-role="dropdown-toggle" aria-label="Close target filter"> <i class="ui-kit-icon ui-kit-icon_cross"></i> </button> </div> <li role="option" class="dropdown--option platform-selector-option common-like" tabindex="0"> <label class="checkbox"> <input type="checkbox" class="checkbox--input" id=":agents:agents-core/commonMain" data-filter=":agents:agents-core/commonMain"> <span class="checkbox--icon"></span> common </label> </li> </ul> <div class="dropdown--overlay"></div> </div> </ul> <button class="navigation-controls--btn navigation-controls--btn_theme" id="theme-toggle-button" type="button">Switch theme </button> <div class="navigation-controls--btn navigation-controls--btn_search" id="searchBar" role="button">Search in API </div> </div> </header> <div id="container"> <nav id="leftColumn" class="sidebar" data-item-type="SECTION" data-item-config="{&quot;defaultSize&quot;: 280, &quot;minSize&quot;: 200, &quot;maxSize&quot;: 400}"> <a class="toc--skip-link" href="#main">Skip to content</a> <div class="dropdown theme-dark_mobile" data-role="dropdown" id="toc-dropdown"> <ul role="listbox" id="toc-listbox" class="dropdown--list dropdown--list_toc-list" data-role="dropdown-listbox" aria-label="Table of contents"> <div class="dropdown--header"> <span> koog </span> <button class="button" data-role="dropdown-toggle" aria-label="Close table of contents"> <i class="ui-kit-icon ui-kit-icon_cross"></i> </button> </div> <div class="sidebar--inner" id="sideMenu"></div> </ul> <div class="dropdown--overlay"></div> </div> </nav> <div id="resizer" class="resizer" data-item-type="BAR"></div> <div id="main" data-item-type="SECTION" role="main"> <div class="main-content" data-page-type="classlike" id="content" pageids="agents-core::ai.koog.agents.core.feature.handler.strategy/StrategyEventHandler///PointingToDeclaration//643085981"> <div class="breadcrumbs"><a href="../../index.html">agents-core</a><span class="delimiter">/</span><a href="../index.html">ai.koog.agents.core.feature.handler.strategy</a><span class="delimiter">/</span><span class="current">StrategyEventHandler</span></div> <div class="cover "> <h1 class="cover"><span>Strategy</span><wbr><span>Event</span><wbr><span><span>Handler</span></span></h1> <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":agents:agents-core/commonMain"><div class="symbol monospace"><span class="token keyword">class </span><a href="index.html">StrategyEventHandler</a><span class="source-link-wrapper"><span class="source-link" data-element-type="source-link">(<a href="https://github.com/JetBrains/koog/tree/main/agents/agents-core/src/commonMain/kotlin/ai/koog/agents/core/feature/handler/strategy/StrategyEventHandler.kt#L8">source</a>)</span></span></div><p class="paragraph">A handler class for managing strategy-related events, providing callbacks for when strategies are started or finished. It is designed to operate on a specific feature type and delegate event handling to the assigned handlers.</p></div></div> </div> <div class="tabbedcontent"> <div class="tabs-section" tabs-section="tabs-section"><button class="section-tab" data-active="" data-togglable="CONSTRUCTOR,TYPE,PROPERTY,FUNCTION">Members</button></div> <div class="tabs-section-body"> <div data-togglable="CONSTRUCTOR"> <h2 class="tableheader">Constructors</h2> <div class="table"><a data-name="-933663501%2FConstructors%2F643085981" anchor-label="StrategyEventHandler" id="-933663501%2FConstructors%2F643085981" data-filterable-set=":agents:agents-core/commonMain"></a> <div class="table-row table-row_content" data-togglable="CONSTRUCTOR" data-filterable-current=":agents:agents-core/commonMain" data-filterable-set=":agents:agents-core/commonMain"> <div class="main-subrow keyValue "> <div class=""><span class="inline-flex"> <div><a href="-strategy-event-handler.html"><span>Strategy</span><wbr><span>Event</span><wbr><span><span>Handler</span></span></a></div> <span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-933663501%2FConstructors%2F643085981"></span> <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div> </span></span></div> <div> <div class="title"> <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":agents:agents-core/commonMain"><div class="symbol monospace"><span class="token keyword">constructor</span><span class="token punctuation">(</span><span class="token punctuation">)</span></div></div></div> </div> </div> </div> </div> </div> </div> <div data-togglable="PROPERTY"> <h2 class="tableheader">Properties</h2> <div class="table"><a data-name="-335578684%2FProperties%2F643085981" anchor-label="strategyCompletedHandler" id="-335578684%2FProperties%2F643085981" data-filterable-set=":agents:agents-core/commonMain"></a> <div class="table-row table-row_content" data-filterable-current=":agents:agents-core/commonMain" data-filterable-set=":agents:agents-core/commonMain"> <div class="main-subrow keyValue "> <div class=""><span class="inline-flex"> <div><a href="strategy-completed-handler.html"><span>strategy</span><wbr><span>Completed</span><wbr><span><span>Handler</span></span></a></div> <span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-335578684%2FProperties%2F643085981"></span> <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div> </span></span></div> <div> <div class="title"> <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":agents:agents-core/commonMain"><div class="symbol monospace"><span class="token keyword">var </span><a href="strategy-completed-handler.html">strategyCompletedHandler</a><span class="token operator">: </span><a href="../-strategy-completed-handler/index.html">StrategyCompletedHandler</a></div><div class="brief "><p class="paragraph">A handler for processing the completion of a strategy within the context of a feature update.</p></div></div></div> </div> </div> </div> </div> <a data-name="1534940077%2FProperties%2F643085981" anchor-label="strategyStartingHandler" id="1534940077%2FProperties%2F643085981" data-filterable-set=":agents:agents-core/commonMain"></a> <div class="table-row table-row_content" data-filterable-current=":agents:agents-core/commonMain" data-filterable-set=":agents:agents-core/commonMain"> <div class="main-subrow keyValue "> <div class=""><span class="inline-flex"> <div><a href="strategy-starting-handler.html"><span>strategy</span><wbr><span>Starting</span><wbr><span><span>Handler</span></span></a></div> <span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1534940077%2FProperties%2F643085981"></span> <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div> </span></span></div> <div> <div class="title"> <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":agents:agents-core/commonMain"><div class="symbol monospace"><span class="token keyword">var </span><a href="strategy-starting-handler.html">strategyStartingHandler</a><span class="token operator">: </span><a href="../-strategy-starting-handler/index.html">StrategyStartingHandler</a></div><div class="brief "><p class="paragraph">Handler invoked when a strategy is started. This can be used to perform custom logic related to strategy initiation for a specific feature.</p></div></div></div> </div> </div> </div> </div> </div> </div> <div data-togglable="FUNCTION"> <h2 class="tableheader">Functions</h2> <div class="table"><a data-name="-1157991181%2FFunctions%2F643085981" anchor-label="handleStrategyCompleted" id="-1157991181%2FFunctions%2F643085981" data-filterable-set=":agents:agents-core/commonMain"></a> <div class="table-row table-row_content" data-filterable-current=":agents:agents-core/commonMain" data-filterable-set=":agents:agents-core/commonMain"> <div class="main-subrow keyValue "> <div class=""><span class="inline-flex"> <div><a href="handle-strategy-completed.html"><span>handle</span><wbr><span>Strategy</span><wbr><span><span>Completed</span></span></a></div> <span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1157991181%2FFunctions%2F643085981"></span> <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div> </span></span></div> <div> <div class="title"> <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":agents:agents-core/commonMain"><div class="symbol monospace"><span class="token keyword">suspend </span><span class="token keyword">fun </span><a href="handle-strategy-completed.html"><span class="token function">handleStrategyCompleted</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">context<span class="token operator">: </span><a href="../-strategy-completed-context/index.html">StrategyCompletedContext</a></span></span><span class="token punctuation">)</span></div><div class="brief "><p class="paragraph">Handles strategy finish events by delegating to the handler.</p></div></div></div> </div> </div> </div> </div> <a data-name="600622723%2FFunctions%2F643085981" anchor-label="handleStrategyStarting" id="600622723%2FFunctions%2F643085981" data-filterable-set=":agents:agents-core/commonMain"></a> <div class="table-row table-row_content" data-filterable-current=":agents:agents-core/commonMain" data-filterable-set=":agents:agents-core/commonMain"> <div class="main-subrow keyValue "> <div class=""><span class="inline-flex"> <div><a href="handle-strategy-starting.html"><span>handle</span><wbr><span>Strategy</span><wbr><span><span>Starting</span></span></a></div> <span class="anchor-wrapper"><span class="anchor-icon" pointing-to="600622723%2FFunctions%2F643085981"></span> <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div> </span></span></div> <div> <div class="title"> <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":agents:agents-core/commonMain"><div class="symbol monospace"><span class="token keyword">suspend </span><span class="token keyword">fun </span><a href="handle-strategy-starting.html"><span class="token function">handleStrategyStarting</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">context<span class="token operator">: </span><a href="../-strategy-starting-context/index.html">StrategyStartingContext</a></span></span><span class="token punctuation">)</span></div><div class="brief "><p class="paragraph">Handles strategy starts events by delegating to the handler.</p></div></div></div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="footer"> <div class="footer--container"> <a href="#content" id="go-to-top-link" class="footer--button footer--button_go-to-top"></a> <div class="footer--content"> <div> <span>Generated by </span> <a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka"> Dokka </a> <div>Copyright © 2000-2025 JetBrains s.r.o.</div> </div> </div> </div> </div> </div> </div> </div> </body> </html>