compile_report
Compile research findings and sources into structured markdown reports with citations for organized documentation.
Instructions
Compile research findings and sources into a structured markdown report with citations.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Report title. | |
| query | No | The original research query. | |
| findings | Yes | List of findings, each with title, content, and optional confidence. | |
| sources | Yes | List of sources, each with url, title, and optional relevance. | |
| metadata | No | Optional metadata key-value pairs for the report frontmatter. |
Implementation Reference
- src/interdeep/server.py:188-205 (handler)The handler function _handle_compile_report that executes the logic for compiling a report.
async def _handle_compile_report(arguments: dict) -> list[TextContent]: title = arguments.get("title", "Untitled Report") query = arguments.get("query", "") findings = arguments.get("findings", []) sources = arguments.get("sources", []) metadata = arguments.get("metadata") try: report = compile_markdown_report( title=title, findings=findings, sources=sources, query=query, metadata=metadata, ) return _ok({"report": report}) except Exception as e: logger.exception("compile_report failed") return _err(f"Report compilation failed: {e}") - src/interdeep/server.py:100-115 (schema)The definition of the compile_report tool, including its input schema and description.
Tool( name="compile_report", description="Compile research findings and sources into a structured markdown report with citations.", inputSchema={ "type": "object", "properties": { "title": { "type": "string", "description": "Report title.", }, "query": { "type": "string", "description": "The original research query.", "default": "", }, "findings": { - src/interdeep/server.py:244-244 (registration)The registration of the compile_report tool in the _HANDLERS dictionary.
"compile_report": _handle_compile_report,