MCPcopy Create free account
hub / github.com/crewAIInc/crewAI / main

Function main

scripts/age90_file_input_runner.py:201–222  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

199
200
201def main() -> None:
202 args = parse_args()
203 pdf_path = args.pdf.expanduser().resolve()
204 api = args.api or None
205
206 if not pdf_path.exists():
207 raise SystemExit(f"PDF not found: {pdf_path}")
208
209 if args.mode in ("inspect", "all"):
210 inspect_native_path(pdf_path, args.provider, api)
211 if args.mode in ("fallback", "all"):
212 inspect_fallback_tool(pdf_path)
213 if args.mode == "payload":
214 run_crew_kickoff(pdf_path, args.model, api, args.prompt, payload_only=True)
215 if args.mode in ("kickoff", "all"):
216 run_crew_kickoff(
217 pdf_path,
218 args.model,
219 api,
220 args.prompt,
221 payload_only=args.mode == "all",
222 )
223
224
225if __name__ == "__main__":

Callers 1

Calls 5

parse_argsFunction · 0.85
inspect_native_pathFunction · 0.85
inspect_fallback_toolFunction · 0.85
run_crew_kickoffFunction · 0.70
resolveMethod · 0.45

Tested by

no test coverage detected