Extractor
Properties
Name |
Type |
Description |
Notes |
---|---|---|---|
name |
str |
Human-readable name |
|
description |
str |
What this extractor does |
|
llm |
str |
(Optional) Identifier or version of the language model the extractor uses |
[optional] |
var_schema |
str |
(Optional) JSONSchema (or other spec) that the extractor outputs |
[optional] |
id |
str |
Unique identifier of the extractor |
|
created_at |
datetime |
When the extractor definition was created |
Example
from h2ogpte.rest_sync.models.extractor import Extractor
# TODO update the JSON string below
json = "{}"
# create an instance of Extractor from a JSON string
extractor_instance = Extractor.from_json(json)
# print the JSON string representation of the object
print(Extractor.to_json())
# convert the object into a dict
extractor_dict = extractor_instance.to_dict()
# create an instance of Extractor from a dict
extractor_from_dict = Extractor.from_dict(extractor_dict)