Skip to content

Commit 4699dbf

Browse files
add a test case
1 parent 3a95520 commit 4699dbf

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

tests/integrations/openai_agents/test_openai_agents.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,22 @@ async def test_agent_invocation_span_no_pii(
321321
},
322322
],
323323
),
324+
(
325+
"You are a coding assistant that talks like a pirate.",
326+
("Test input"),
327+
[
328+
{
329+
"type": "text",
330+
"content": "You are a coding assistant that talks like a pirate.",
331+
},
332+
],
333+
[
334+
{
335+
"content": [{"text": "Test input", "type": "text"}],
336+
"role": "user",
337+
},
338+
],
339+
),
324340
(
325341
"You are a coding assistant that talks like a pirate.",
326342
[
@@ -870,6 +886,22 @@ def test_agent_invocation_span_sync_no_pii(
870886
},
871887
],
872888
),
889+
(
890+
"You are a coding assistant that talks like a pirate.",
891+
("Test input"),
892+
[
893+
{
894+
"type": "text",
895+
"content": "You are a coding assistant that talks like a pirate.",
896+
},
897+
],
898+
[
899+
{
900+
"content": [{"text": "Test input", "type": "text"}],
901+
"role": "user",
902+
},
903+
],
904+
),
873905
(
874906
"You are a coding assistant that talks like a pirate.",
875907
[

0 commit comments

Comments
 (0)