mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-15 01:21:48 +03:00
feat: Add tags to AssistantOutput classes (#2425)
This pull request adds a new optional field "tags" to the AssistantOutput classes. The "tags" field allows for categorizing the outputs and can be used for filtering or organizing purposes.
This commit is contained in:
parent
488949d408
commit
9db8b63bb9
@ -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