MCPcopy Create free account
hub / github.com/QuantiaAI/helm-agents / createInitialState

Function createInitialState

packages/shared/src/state.ts:71–81  ·  view source on GitHub ↗
(input: InitialStateInput)

Source from the content-addressed store, hash-verified

69}
70
71export function createInitialState(input: InitialStateInput): AgentState {
72 return AgentStateSchema.parse({
73 companyOfInterest: input.ticker,
74 tradeDate: input.tradeDate,
75 assetType: input.assetType,
76 instrumentContext: input.instrumentContext ?? "",
77 pastContext: input.pastContext ?? "",
78 investmentDebateState: {},
79 riskDebateState: {},
80 });
81}

Callers 5

makeStateFunction · 0.90
stateFunction · 0.90
graph.test.tsFile · 0.90
stFunction · 0.90
state.test.tsFile · 0.85

Calls

no outgoing calls

Tested by 2

stateFunction · 0.72
stFunction · 0.72