Closed pitbuk101 closed 5 months ago
Which Sparrow agent you are using?
Sir I'm using vprocessor.
You should remove output_cls and test, this is where validation logic is enforced:
program = LLMTextCompletionProgram.from_defaults(
output_cls=ResponseModel,
prompt_template_str=prompt_template_str,
llm=llm_ollama,
verbose=True,
)
Caught an exception: 4 validation errors for DynamicModel eway_bill_no Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType] For further information visit https://errors.pydantic.dev/2.7/v/int_type id_number Input should be a valid string [type=string_type, input_value=None, input_type=NoneType] For further information visit https://errors.pydantic.dev/2.7/v/string_type id_receiver Input should be a valid string [type=string_type, input_value=None, input_type=NoneType] For further information visit https://errors.pydantic.dev/2.7/v/string_type id_issuer Input should be a valid string [type=string_type, input_value=None, input_type=NoneType] For further information visit https://errors.pydantic.dev/2.7/v/string_type