ModelAnswer
Properties
Name |
Type |
Description |
Notes |
---|---|---|---|
content |
str |
||
error |
str |
||
prompt_raw |
str |
[optional] |
|
llm |
str |
||
input_tokens |
int |
[optional] |
|
output_tokens |
int |
[optional] |
|
origin |
str |
[optional] |
Example
from h2ogpte.rest_sync.models.model_answer import ModelAnswer
# TODO update the JSON string below
json = "{}"
# create an instance of ModelAnswer from a JSON string
model_answer_instance = ModelAnswer.from_json(json)
# print the JSON string representation of the object
print(ModelAnswer.to_json())
# convert the object into a dict
model_answer_dict = model_answer_instance.to_dict()
# create an instance of ModelAnswer from a dict
model_answer_from_dict = ModelAnswer.from_dict(model_answer_dict)