AWorld icon indicating copy to clipboard operation
AWorld copied to clipboard

GAIA Issue

Open Yuzt-zju opened this issue 1 year ago • 2 comments

Image

Yuzt-zju avatar Jul 18 '25 08:07 Yuzt-zju

Always getting stuck in this place

Yuzt-zju avatar Jul 18 '25 08:07 Yuzt-zju

This tools depends on marker pdf toolkits.

You could run the following unittest script to check.

import os
import traceback

from examples.gaia.mcp_collections.base import ActionArguments
from examples.gaia.mcp_collections.documents.pdf import DocumentExtractionCollection

# Default arguments for testing
args = ActionArguments(
    name="document_extraction_service",
    transport="stdio",
    workspace=os.getenv("AWORLD_WORKSPACE", "~"),
    unittest=True
)

# Initialize and run the document extraction service
try:
    service = DocumentExtractionCollection(args)
    response = service.mcp_extract_document_content("/path/to/your/pdf/file.")
    print(response.model_dump_json())
except Exception as e:
    print(f"An error occurred: {e}: {traceback.format_exc()}")

qingw-dev avatar Jul 29 '25 09:07 qingw-dev