Skip to content

Commit

Permalink
update to add descriptions for input and outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Bentlybro committed Oct 23, 2024
1 parent 5d0f01b commit f1ea47f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions autogpt_platform/backend/backend/blocks/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,14 @@ def run(self, input_data: Input, **kwargs) -> BlockOutput:

class FactCheckerBlock(Block, GetRequest):
class Input(BlockSchema):
statement: str
statement: str = SchemaField(description="The statement to check for factuality")
api_key: BlockSecret = SecretField(key="jina_api_key")

class Output(BlockSchema):
factuality: float
result: bool
reason: str
error: str
factuality: float = SchemaField(description="The factuality score of the statement")
result: bool = SchemaField(description="The result of the factuality check")
reason: str = SchemaField(description="The reason for the factuality result")
error: str = SchemaField(description="Error message if the check fails")

def __init__(self):
super().__init__(
Expand Down

0 comments on commit f1ea47f

Please sign in to comment.