()
| 120 | } |
| 121 | |
| 122 | export 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 | } |
| 142 | export function getInitialSessionState( |
| 143 | fileContext: ProjectFileContext, |
| 144 | ): SessionState { |
no outgoing calls
no test coverage detected