refreshDirectoryOnRunEnd
Unpublished development API. This package is under development and is not available as a published release.
Refreshes the directory each time the session leaves 'running', whether
the run succeeded or ended in error. A rejected refresh is ignored. Returns
an idempotent release.
import { refreshDirectoryOnRunEnd } from '@threadplane/core';Declaration · overload 1
export declare function refreshDirectoryOnRunEnd(directory: Pick<ThreadDirectory, 'refresh'>, session: Pick<AgentSession, 'getSnapshot' | 'subscribe'>): () => void;Parameters
directory· requiredPick<ThreadDirectory, 'refresh'>session· requiredPick<AgentSession, 'getSnapshot' | 'subscribe'>
Returns
() => void