Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Y-Research-SBU/PosterGen
/ functions
Functions
185 in github.com/Y-Research-SBU/PosterGen
⨍
Functions
185
◇
Types & classes
23
↳
Endpoints
8
↓ 66 callers
Function
log_agent_info
log agent info
utils/src/logging_utils.py:103
↓ 29 callers
Function
log_agent_error
log agent error
utils/src/logging_utils.py:93
↓ 29 callers
Function
log_agent_warning
log agent warning
utils/src/logging_utils.py:98
↓ 22 callers
Function
log_agent_success
log agent success
utils/src/logging_utils.py:88
↓ 15 callers
Function
load_config
Load configuration from poster_config.yaml
src/config/poster_config.py:8
↓ 13 callers
Function
add_job_log
(job_id: str, message: str)
webui/backend/main.py:73
↓ 9 callers
Function
extract_json
extract json from model response
utils/langgraph_utils.py:268
↓ 9 callers
Function
load_prompt
load prompt template from file
utils/langgraph_utils.py:286
↓ 9 callers
Method
step
process message and return response
utils/langgraph_utils.py:147
↓ 7 callers
Function
create_timing_wrapper
Wrap agent node with timing tracking
src/workflow/pipeline.py:33
↓ 7 callers
Method
get_component_percentage
(self, component_time: float)
src/state/poster_state.py:71
↓ 6 callers
Method
_parse_color
parse color string to RGBColor
src/agents/renderer.py:652
↓ 6 callers
Method
add_text
(self, inp: int, out: int)
src/state/poster_state.py:23
↓ 5 callers
Method
_hsv_to_rgb
(self, h: float, s: float, v: float)
src/agents/color_agent.py:300
↓ 5 callers
Function
log
centralized logging function for all agents args: agent_name: name of the agent (e.g., "parser", "color_agent") level: l
utils/src/logging_utils.py:44
↓ 5 callers
Method
reset
reset conversation
utils/langgraph_utils.py:142
↓ 4 callers
Method
_rgb_to_hsv
convert rgb to hsv
src/agents/color_agent.py:278
↓ 4 callers
Function
handleConfigChange
(field: keyof PosterConfig, value: string | number)
webui/frontend/src/App.tsx:110
↓ 3 callers
Method
_save_content
(self, content: Dict, filename: str, content_dir: Path)
src/agents/parser.py:141
↓ 3 callers
Function
handleFileChange
(field: keyof UploadedFiles, file: File)
webui/frontend/src/App.tsx:114
↓ 3 callers
Function
measure_text_height
find minimum height for text to fit without font size reduction
src/layout/text_height_measurement.py:24
↓ 2 callers
Method
_calculate_visual_height
calculate proper visual width and height based on aspect ratio with auto-shrinking for large visuals returns: (final_width, final_hei
src/agents/layout_agent.py:728
↓ 2 callers
Method
_create_precise_layout
create precise layout with exact positioning using measurements
src/agents/layout_agent.py:276
↓ 2 callers
Method
_extract_theme_from_visuals
fallback: extract theme from key visuals
src/agents/color_agent.py:96
↓ 2 callers
Method
_fallback_visual_classification
(self, visuals)
src/agents/parser.py:348
↓ 2 callers
Method
_generate_column_analysis
generate detailed column utilization analysis using exact column calculation method
src/agents/layout_agent.py:199
↓ 2 callers
Function
_get_model_config
get model configuration
src/state/poster_state.py:164
↓ 2 callers
Method
_get_relative_luminance
calculate relative luminance for WCAG contrast calculations
src/agents/color_agent.py:254
↓ 2 callers
Method
_organize_sections_by_column
organize sections by column assignment for layout creation
src/agents/layout_agent.py:255
↓ 2 callers
Method
_render_logo_with_aspect_ratio
render logo with proper aspect ratio preservation
src/agents/renderer.py:608
↓ 2 callers
Method
add_api_call
(self, agent: str, call_type: str, input_tokens: int, output_tokens: int)
src/state/poster_state.py:54
↓ 2 callers
Method
add_vision
(self, inp: int, out: int)
src/state/poster_state.py:27
↓ 2 callers
Function
create_state
create initial poster state
src/state/poster_state.py:122
↓ 2 callers
Function
create_workflow_graph
create the langgraph workflow
src/workflow/pipeline.py:59
↓ 2 callers
Function
getPosterImageUrl
()
webui/frontend/src/App.tsx:91
↓ 2 callers
Function
get_available_models
()
webui/backend/main.py:51
↓ 2 callers
Method
get_total_time
(self)
src/state/poster_state.py:63
↓ 1 callers
Method
_add_contrast_color
add contrast color for keyword highlighting
src/agents/color_agent.py:178
↓ 1 callers
Method
_add_enhanced_text
add text with enhanced formatting support
src/agents/renderer.py:332
↓ 1 callers
Method
_add_formatted_runs
add text with all formatting as separate runs - following pptx best practices
src/agents/renderer.py:399
↓ 1 callers
Method
_add_visual_with_aspect_ratio
add visual with proper aspect ratio preservation and optional scaling
src/agents/renderer.py:579
↓ 1 callers
Method
_analyze_figure_for_color
analyze figure to extract theme color
src/agents/color_agent.py:126
↓ 1 callers
Method
_apply_content_styling
apply styling to content elements with keyword highlighting
src/agents/font_agent.py:135
↓ 1 callers
Method
_apply_keyword_highlighting
apply semantic-based keyword highlighting with three distinct styles
src/agents/font_agent.py:181
↓ 1 callers
Method
_apply_section_container_styling
apply styling to section container elements
src/agents/font_agent.py:129
↓ 1 callers
Method
_apply_styling
apply styling with proper bullet point and bold formatting
src/agents/font_agent.py:87
↓ 1 callers
Method
_apply_title_styling
apply styling to title elements
src/agents/font_agent.py:121
↓ 1 callers
Method
_calculate_contrast_ratio
calculate WCAG contrast ratio between two colors
src/agents/color_agent.py:245
↓ 1 callers
Method
_calculate_precise_section_height
calculate precise section height using css box model
src/agents/layout_agent.py:675
↓ 1 callers
Method
_classify_visual_assets
(self, figures: Dict, tables: Dict, raw_text: str, config, state)
src/agents/parser.py:300
↓ 1 callers
Method
_convert_to_png
convert PPTX to PNG using LibreOffice
src/agents/renderer.py:680
↓ 1 callers
Method
_create_logo_elements
create logo elements with exact positioning
src/agents/layout_agent.py:375
↓ 1 callers
Method
_create_section_elements
create all elements for a section with precise positioning
src/agents/layout_agent.py:425
↓ 1 callers
Method
_create_section_title_design
create section title with colorblock styling
src/agents/layout_agent.py:512
↓ 1 callers
Method
_create_spatial_layout
create precise spatial layout using css-like calculations
src/agents/layout_agent.py:632
↓ 1 callers
Method
_create_story_board
(self, structured_sections, narrative_content, classified_visuals, images, tables, visual_context, config, sta
src/agents/curator.py:77
↓ 1 callers
Method
_create_title_element
create title element with exact positioning
src/agents/layout_agent.py:350
↓ 1 callers
Method
_elements_overlap
check if two elements overlap
src/agents/layout_agent.py:623
↓ 1 callers
Method
_estimate_section_height
estimate total height for a section including visuals and text
src/agents/curator.py:389
↓ 1 callers
Method
_extract_assets
(self, result, name: str, assets_dir: Path)
src/agents/parser.py:149
↓ 1 callers
Method
_extract_captions
(self, document)
src/agents/parser.py:198
↓ 1 callers
Method
_extract_decisions
extract optimization decisions from response
src/agents/balancer_agent.py:97
↓ 1 callers
Method
_extract_parent_section
extract parent section id from element
src/agents/font_agent.py:165
↓ 1 callers
Method
_extract_raw_text
(self, pdf_path: str, content_dir: Path)
src/agents/parser.py:101
↓ 1 callers
Method
_extract_structured_sections
(self, raw_text: str, config, state)
src/agents/parser.py:369
↓ 1 callers
Method
_extract_theme_from_logo
extract theme color from affiliation logo using vision LLM
src/agents/color_agent.py:55
↓ 1 callers
Method
_extract_title_authors
(self, text: str, config, state)
src/agents/parser.py:272
↓ 1 callers
Method
_find_nearby_captions
(self, page, target_block, document)
src/agents/parser.py:239
↓ 1 callers
Method
_format_bullet_points
ensure proper bullet point formatting
src/agents/font_agent.py:256
↓ 1 callers
Method
_format_enhanced_text
format text with enhanced bullet point and bold support using 1.0 line spacing
src/agents/renderer.py:361
↓ 1 callers
Method
_generate_color_scheme
(self, theme_color: str)
src/agents/color_agent.py:156
↓ 1 callers
Method
_generate_colorblock_design
Generate colorblock design
src/agents/section_title_designer.py:49
↓ 1 callers
Method
_generate_complementary_color
generate complementary color
src/agents/color_agent.py:215
↓ 1 callers
Method
_generate_enhanced_dark_variant
generate darker variant
src/agents/color_agent.py:201
↓ 1 callers
Method
_generate_enhanced_light_variant
generate light background color
src/agents/color_agent.py:192
↓ 1 callers
Method
_generate_final_layout
generate final layout from optimized story board
src/agents/layout_agent.py:79
↓ 1 callers
Method
_generate_initial_layout
generate initial layout without optimization - direct curator mapping
src/agents/layout_agent.py:42
↓ 1 callers
Method
_generate_narrative_content
(self, text: str, config, state)
src/agents/parser.py:119
↓ 1 callers
Method
_generate_qr_code
generate QR code for URL
src/agents/renderer.py:658
↓ 1 callers
Method
_generate_rectangle_applications
(self, sections: List[Dict], colors: Dict)
src/agents/section_title_designer.py:89
↓ 1 callers
Function
_get_caller_info
get the caller file and line number, skipping this logging_utils.py file
utils/src/logging_utils.py:10
↓ 1 callers
Method
_get_contrast_text_color
determine appropriate text color for given background
src/agents/color_agent.py:322
↓ 1 callers
Method
_get_visual_path
get path to visual asset
src/agents/renderer.py:639
↓ 1 callers
Method
_highlight_keyword_in_content
highlight a specific keyword in content
src/agents/font_agent.py:203
↓ 1 callers
Method
_identify_keywords
identify keywords using story board content and enhanced narrative
src/agents/font_agent.py:63
↓ 1 callers
Method
_load_styling_interfaces
load styling interfaces from font agent output file
src/agents/renderer.py:58
↓ 1 callers
Method
_map_rectangle_colors
Map color scheme to rectangle_left template colors
src/agents/section_title_designer.py:73
↓ 1 callers
Method
_parse_and_add_runs
parse text and create separate runs for each format type
src/agents/renderer.py:404
↓ 1 callers
Method
_prepare_visual_context_for_curator
prepare visual assets height information for curator's spatial planning
src/agents/curator.py:245
↓ 1 callers
Method
_reduce_saturation_brightness
optimize contrast color for readability
src/agents/color_agent.py:222
↓ 1 callers
Method
_render_element
render individual element based on type
src/agents/renderer.py:105
↓ 1 callers
Method
_render_presentation
render complete presentation
src/agents/renderer.py:80
↓ 1 callers
Method
_render_qr_code
render QR code element
src/agents/renderer.py:675
↓ 1 callers
Method
_render_text
render text elements with enhanced formatting
src/agents/renderer.py:282
↓ 1 callers
Method
_save_balancer_output
save balancer optimization results
src/agents/layout_with_balancer.py:64
↓ 1 callers
Method
_save_color_scheme
save color scheme to json file
src/agents/color_agent.py:337
↓ 1 callers
Method
_save_final_layout
save final layout data
src/agents/layout_agent.py:183
↓ 1 callers
Method
_save_initial_layout
save initial layout data
src/agents/layout_agent.py:172
↓ 1 callers
Method
_save_raw_text
(self, raw_text: str, content_dir: Path)
src/agents/parser.py:145
↓ 1 callers
Method
_save_story_board
save story board to json file
src/agents/curator.py:423
next →
1–100 of 185, ranked by callers