from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key="My API Key",
)
response = client.v2.documents.legacy.reason(
documents=[{
"id": "id",
"file_name": "fileName",
}],
task={
"id": "id",
"description": "description",
"label": "label",
"type": "reasoning",
},
)
print(response.async_result_id)
{
"asyncResultId": "<string>"
}
Initiates an asynchronous document reasoning process based on a task. Returns an ID for tracking.
from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key="My API Key",
)
response = client.v2.documents.legacy.reason(
documents=[{
"id": "id",
"file_name": "fileName",
}],
task={
"id": "id",
"description": "description",
"label": "label",
"type": "reasoning",
},
)
print(response.async_result_id)
{
"asyncResultId": "<string>"
}
Accepted. Legacy reasoning process initiated.