Add independent MCP PDF report delivery
This commit is contained in:
@@ -17,6 +17,7 @@ from roll_calculation import (
|
||||
get_article,
|
||||
transport_roll_inputs_from_roll_calculation,
|
||||
)
|
||||
from mcp_pdf_delivery import generate_mcp_calculation_pdf
|
||||
from transport_calculation import analyze_transport
|
||||
|
||||
|
||||
@@ -226,6 +227,39 @@ def calculate_roll_diameter_result(
|
||||
return result
|
||||
|
||||
|
||||
def generate_calculation_pdf_result(
|
||||
*,
|
||||
article_number: str | None = None,
|
||||
article_name_hint: str | None = None,
|
||||
roll_length_m: float | None = None,
|
||||
width_m: float | None = None,
|
||||
thickness_mm: float | None = None,
|
||||
thickness_stddev_mm: float | None = None,
|
||||
area_weight_g_m2: float | None = None,
|
||||
core_diameter_mm: float | None = None,
|
||||
core_type: str | None = None,
|
||||
category: str | None = None,
|
||||
production_site: str | None = None,
|
||||
include_roll_weight: bool = True,
|
||||
) -> dict[str, Any]:
|
||||
"""Create the established PDF from original inputs, never LLM result values."""
|
||||
request = {
|
||||
"article_number": article_number,
|
||||
"article_name_hint": article_name_hint,
|
||||
"roll_length_m": roll_length_m,
|
||||
"width_m": width_m,
|
||||
"thickness_mm": thickness_mm,
|
||||
"thickness_stddev_mm": thickness_stddev_mm,
|
||||
"area_weight_g_m2": area_weight_g_m2,
|
||||
"core_diameter_mm": core_diameter_mm,
|
||||
"core_type": core_type,
|
||||
"category": category,
|
||||
"production_site": production_site,
|
||||
"include_roll_weight": include_roll_weight,
|
||||
}
|
||||
return generate_mcp_calculation_pdf(request)
|
||||
|
||||
|
||||
def analyze_transport_capacity_result(
|
||||
*,
|
||||
transport_preset: str,
|
||||
|
||||
Reference in New Issue
Block a user