Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.2 KB

File metadata and controls

32 lines (23 loc) · 1.2 KB

ExtractRequest

Request body for POST /v1/agent/extract.

Properties

Name Type Description Notes
prompt str User prompt passed directly to the agent
schema_path_part_id UUID PathPart ID of a KS document whose content is a JSON schema. [optional]
output_schema Dict[str, object] JSON schema provided inline as a dict. Mutually exclusive with schema_path_part_id; exactly one is required. [optional]

Example

from ksapi.models.extract_request import ExtractRequest

# TODO update the JSON string below
json = "{}"
# create an instance of ExtractRequest from a JSON string
extract_request_instance = ExtractRequest.from_json(json)
# print the JSON string representation of the object
print(ExtractRequest.to_json())

# convert the object into a dict
extract_request_dict = extract_request_instance.to_dict()
# create an instance of ExtractRequest from a dict
extract_request_from_dict = ExtractRequest.from_dict(extract_request_dict)

[Back to Model list] [Back to API list] [Back to README]