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:
Stan Girard 2024-04-11 09:42:01 -07:00 committed by GitHub
parent 488949d408
commit 9db8b63bb9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 0 deletions

View File

@ -47,6 +47,7 @@ class Outputs(BaseModel):
class AssistantOutput(BaseModel):
name: str
tags: Optional[List[str]] = []
input_description: str
output_description: str
inputs: Inputs

View File

@ -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(

View File

@ -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(

View File

@ -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(