AWorld
AWorld copied to clipboard
GAIA Issue
Always getting stuck in this place
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()}")