mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-08-16 18:00:23 +03:00
feat: Add tags to AssistantOutput classes
This commit is contained in:
parent
488949d408
commit
91ba90c9a4
@ -47,6 +47,7 @@ class Outputs(BaseModel):
|
||||
|
||||
class AssistantOutput(BaseModel):
|
||||
name: str
|
||||
tags: Optional[List[str]] = []
|
||||
input_description: str
|
||||
output_description: str
|
||||
inputs: Inputs
|
||||
|
@ -59,6 +59,7 @@ def audio_transcript_inputs():
|
||||
output = AssistantOutput(
|
||||
name="Audio Transcript",
|
||||
description="Transcribes an audio file",
|
||||
tags=["new"],
|
||||
input_description="One audio file to transcribe",
|
||||
output_description="Transcription of the audio file",
|
||||
inputs=Inputs(
|
||||
|
@ -45,6 +45,7 @@ def crawler_inputs():
|
||||
output = AssistantOutput(
|
||||
name="Crawler",
|
||||
description="Crawls a website and extracts the text from the pages",
|
||||
tags=["new"],
|
||||
input_description="One URL to crawl",
|
||||
output_description="Text extracted from the pages",
|
||||
inputs=Inputs(
|
||||
|
@ -141,6 +141,7 @@ def summary_inputs():
|
||||
output = AssistantOutput(
|
||||
name="Summary",
|
||||
description="Summarize a set of documents",
|
||||
tags=["new"],
|
||||
input_description="One document to summarize",
|
||||
output_description="A summary of the document",
|
||||
inputs=Inputs(
|
||||
|
Loading…
Reference in New Issue
Block a user