MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getInitialAgentState

Function getInitialAgentState

common/src/types/session-state.ts:122–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120}
121
122export function getInitialAgentState(): AgentState {
123 return {
124 agentId: 'main-agent',
125 agentType: null,
126 agentContext: {},
127 ancestorRunIds: [],
128 runId: undefined,
129 subagents: [],
130 childRunIds: [],
131 messageHistory: [],
132 stepsRemaining: MAX_AGENT_STEPS_DEFAULT,
133 creditsUsed: 0,
134 directCreditsUsed: 0,
135 output: undefined,
136 parentId: undefined,
137 systemPrompt: '',
138 toolDefinitions: {},
139 contextTokenCount: 0,
140 }
141}
142export function getInitialSessionState(
143 fileContext: ProjectFileContext,
144): SessionState {

Callers 3

getInitialSessionStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected