Eric Botti commited on
Commit
f7ce19f
·
1 Parent(s): 47b6f03

output format typing fixes

Browse files
Files changed (2) hide show
  1. src/agent_interfaces.py +1 -1
  2. src/output_formats.py +0 -3
src/agent_interfaces.py CHANGED
@@ -41,7 +41,7 @@ class BaseAgentInterface:
41
  def respond_to_formatted(
42
  self,
43
  message: Message,
44
- output_format: OutputFormat,
45
  max_retries=3,
46
  **kwargs
47
  ) -> OutputFormatModel:
 
41
  def respond_to_formatted(
42
  self,
43
  message: Message,
44
+ output_format: Type[OutputFormatModel],
45
  max_retries=3,
46
  **kwargs
47
  ) -> OutputFormatModel:
src/output_formats.py CHANGED
@@ -23,9 +23,6 @@ class OutputFormatModel(BaseModel):
23
  return FORMAT_INSTRUCTIONS.format(schema=json_format)
24
 
25
 
26
- OutputFormat = NewType("OutputFormat", OutputFormatModel)
27
-
28
-
29
  class AnimalDescriptionFormat(OutputFormatModel):
30
  # Define fields of our class here
31
  description: str = Field(description="A brief description of the animal")
 
23
  return FORMAT_INSTRUCTIONS.format(schema=json_format)
24
 
25
 
 
 
 
26
  class AnimalDescriptionFormat(OutputFormatModel):
27
  # Define fields of our class here
28
  description: str = Field(description="A brief description of the animal")