UNPKG

adk-typescript

Version:

TypeScript port of Google's Agent Development Kit (ADK)

34 lines (33 loc) 1.25 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EventActions = void 0; /** * Represents the actions attached to an event. */ class EventActions { constructor(params = {}) { /** * Indicates that the event is updating the state with the given delta. */ this.stateDelta = {}; /** * Indicates that the event is updating an artifact. key is the filename, * value is the version. */ this.artifactDelta = {}; /** * Will only be set by a tool response indicating tool request euc. * Map key is the function call id since one function call response (from model) * could correspond to multiple function calls. * Map value is the required auth config. */ this.requestedAuthConfigs = new Map(); this.skipSummarization = params.skipSummarization; this.stateDelta = params.stateDelta || {}; this.artifactDelta = params.artifactDelta || {}; this.transferToAgent = params.transferToAgent; this.escalate = params.escalate; this.requestedAuthConfigs = params.requestedAuthConfigs || new Map(); } } exports.EventActions = EventActions;