Eric Botti
commited on
Commit
·
6bc86db
1
Parent(s):
87c03a0
output format typing
Browse files- src/agent_interfaces.py +1 -1
src/agent_interfaces.py
CHANGED
@@ -110,7 +110,7 @@ class OpenAIAgentInterface(BaseAgentInterface):
|
|
110 |
class HumanAgentInterface(BaseAgentInterface):
|
111 |
is_human = True
|
112 |
|
113 |
-
def respond_to_formatted(self, message: Message, output_format:
|
114 |
"""For Human agents, we can trust them enough to format their own responses... for now"""
|
115 |
response = super().respond_to(message)
|
116 |
# only works because current outputs have only 1 field...
|
|
|
110 |
class HumanAgentInterface(BaseAgentInterface):
|
111 |
is_human = True
|
112 |
|
113 |
+
def respond_to_formatted(self, message: Message, output_format: Type[OutputFormatModel], **kwargs) -> OutputFormatModel:
|
114 |
"""For Human agents, we can trust them enough to format their own responses... for now"""
|
115 |
response = super().respond_to(message)
|
116 |
# only works because current outputs have only 1 field...
|