MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / createSession

Function createSession

server/src/training-agent/state.ts:159–185  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

157// ── Session shape helpers ────────────────────────────────────────
158
159function createSession(): SessionState {
160 const now = new Date();
161 return {
162 mediaBuys: new Map(),
163 governancePlans: new Map(),
164 governanceChecks: new Map(),
165 governanceOutcomes: new Map(),
166 propertyLists: new Map(),
167 collectionLists: new Map(),
168 contentStandards: new Map(),
169 rightsGrants: new Map(),
170 creatives: new Map(),
171 signalActivations: new Map(),
172 usageRecords: [],
173 complyExtensions: {
174 accountStatuses: new Map(),
175 siSessions: new Map(),
176 deliverySimulations: new Map(),
177 budgetSimulations: new Map(),
178 seededProducts: new Map(),
179 seededPricingOptions: new Map(),
180 seededCreativeFormats: new Map(),
181 },
182 createdAt: now,
183 lastAccessedAt: now,
184 };
185}
186
187/**
188 * Canonical compliance creative fixtures.

Callers 2

deserializeSessionFunction · 0.85
getSessionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected