Gen2PresentationCompanyProfile
Creates a single-slide CompanyProfile presentation from analysis files in datastore3.
Execution
python gen2_presentation_company_profile.py --date <YYYY/MM/DD> --prompt "" --llm-timeout
Arguments
- domain required alphabetic string only A-Z or a-z
- --date required supports YYYY/MM/DD (also accepts '-')
- --prompt optional LLM formatting instruction for slide bullets
- --analysis-file optional absolute/relative path to a single analysis JSON file
- --max-analysis-files optional default 6
- --max-analysis-chars optional default 18000
- --llm-timeout optional default 90
LLM configuration
Uses OpenAI-compatible Chat Completions API with environment variables:
- OPENAI_API_KEY required
- OPENAI_MODEL optional default gpt-4o-mini
- OPENAI_BASE_URL optional default https://api.openai.com/v1
Behavior
- Resolves analysis input from
02-Analysis/<domain>/for provided date scope. - Builds bounded context from analysis JSON files.
- Calls LLM to produce strict slide JSON payload.
- Renders one A4 landscape PPTX slide using python-pptx.
- Writes output to
03-Present/<domain>/<YYYY>/<MM>/<DD>/.
Output
On success returns JSON with:
- domain
- date
- analysis_files
- presentation_path
- payload_path
- status
On error returns JSON with:
- domain
- date
- error
- status