@promptbook/google
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
19 lines (18 loc) • 1.11 kB
TypeScript
import type { AgentMessageTouchedExternalSource } from './AgentMessageTouchedExternalSource';
/**
* Resolves which sources outside the agent one coding harness touched while answering a single message.
*
* The runtime log streams what the harness really did, so a source counts as touched when the
* harness reached it in a tool invocation — calling an integration, fetching a web address,
* searching the web, or running a network client in the shell. Only tool payloads are inspected:
* tool results and assistant narration are ignored so a service merely mentioned in the
* conversation is never reported, and addresses of the machine the agent runs on are dropped
* because they are internal.
*
* @param options - Raw runtime log content of one answered message.
* @returns Touched external sources without duplicates, ordered by first appearance.
* @private internal utility of the agent-message runtime
*/
export declare function resolveAgentMessageTouchedExternalSources(options: {
readonly logText: string | null | undefined;
}): ReadonlyArray<AgentMessageTouchedExternalSource>;