MCPcopy Create free account
hub / github.com/microsoft/AI-Engineering-Coach / extractFilePath

Function extractFilePath

src/core/parser-codex.ts:261–267  ·  view source on GitHub ↗
(args: Record<string, unknown> | null | undefined)

Source from the content-addressed store, hash-verified

259}
260
261function extractFilePath(args: Record<string, unknown> | null | undefined): string | null {
262 if (!args) return null;
263 if (typeof args.file_path === 'string') return args.file_path;
264 if (typeof args.path === 'string') return args.path;
265 if (typeof args.filename === 'string') return args.filename;
266 return null;
267}
268
269function handleUserMessageEvent(payload: Record<string, unknown>, state: CodexParseState, ts: number | null, defaultModel: string): void {
270 const newMessage = stringValue(payload.message) || stringValue(payload.text);

Callers 2

handleFunctionCallEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected