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

Function parse_args

scripts/age90_file_input_runner.py:164–198  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

162
163
164def parse_args() -> argparse.Namespace:
165 parser = argparse.ArgumentParser(description=__doc__)
166 parser.add_argument(
167 "--mode",
168 choices=("inspect", "fallback", "payload", "kickoff", "all"),
169 default="inspect",
170 help="What to run. 'inspect', 'fallback', and 'payload' do not call an LLM.",
171 )
172 parser.add_argument(
173 "--pdf",
174 type=Path,
175 default=DEFAULT_PDF,
176 help="PDF file to test.",
177 )
178 parser.add_argument(
179 "--provider",
180 default="gpt-4o-mini",
181 help="Provider/model string for file formatting inspection.",
182 )
183 parser.add_argument(
184 "--model",
185 default="openai/gpt-4o-mini",
186 help="CrewAI model for real kickoff mode.",
187 )
188 parser.add_argument(
189 "--api",
190 default="responses",
191 help="API variant. Use '' to omit.",
192 )
193 parser.add_argument(
194 "--prompt",
195 default="Summarize the uploaded PDF in 3 bullet points. Do not guess.",
196 help="Task prompt for kickoff mode.",
197 )
198 return parser.parse_args()
199
200
201def main() -> None:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected