MCPcopy Create free account
hub / github.com/agenticsorg/edge-agents / constructor

Method constructor

scripts/agentic-mcp/src/mcp/context.ts:14–25  ·  view source on GitHub ↗
(parent?: Context)

Source from the content-addressed store, hash-verified

12 parent?: Context;
13
14 constructor(parent?: Context) {
15 this.conversation = [];
16 this.parent = parent;
17 this.state = {
18 preferences: this.getDefaultPreferences(),
19 auth: {},
20 collected_info: {},
21 previous_actions: [],
22 resources: {},
23 memory: {}
24 };
25 }
26
27 private getDefaultPreferences(): UserPreferences {
28 return {

Callers

nothing calls this directly

Calls 1

getDefaultPreferencesMethod · 0.95

Tested by

no test coverage detected