File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
integrations/openai_agents Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,14 @@ class GEN_AI_ALLOWED_MESSAGE_ROLES:
1414 SYSTEM = "system"
1515 USER = "user"
1616 ASSISTANT = "assistant"
17- TOOL_CALL = "tool"
17+ TOOL = "tool"
1818
1919
2020GEN_AI_MESSAGE_ROLE_REVERSE_MAPPING = {
2121 GEN_AI_ALLOWED_MESSAGE_ROLES .SYSTEM : ["system" ],
2222 GEN_AI_ALLOWED_MESSAGE_ROLES .USER : ["user" , "human" ],
2323 GEN_AI_ALLOWED_MESSAGE_ROLES .ASSISTANT : ["assistant" , "ai" ],
24- GEN_AI_ALLOWED_MESSAGE_ROLES .TOOL_CALL : ["tool" , "tool_call" ],
24+ GEN_AI_ALLOWED_MESSAGE_ROLES .TOOL : ["tool" , "tool_call" ],
2525}
2626
2727GEN_AI_MESSAGE_ROLE_MAPPING = {}
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ def _set_input_data(span, get_response_kwargs):
130130 elif message .get ("type" ) == "function_call_output" :
131131 request_messages .append (
132132 {
133- "role" : GEN_AI_ALLOWED_MESSAGE_ROLES .TOOL_CALL ,
133+ "role" : GEN_AI_ALLOWED_MESSAGE_ROLES .TOOL ,
134134 "content" : [message ],
135135 }
136136 )
You can’t perform that action at this time.
0 commit comments