Skip to content

Commit a825bed

Browse files
test: Improve Box AI Studio test (box/box-codegen#887) (#1203)
1 parent 1c6641b commit a825bed

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.codegen.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "engineHash": "a17cbb6", "specHash": "e7ce024", "version": "10.0.1" }
1+
{ "engineHash": "35c5d34", "specHash": "e7ce024", "version": "10.0.1" }

test/ai_studio.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,17 @@ def testUseAIAgentReferenceInAIAsk():
7575
file_to_ask: FileFull = upload_new_file()
7676
response: Optional[AiResponseFull] = client.ai.create_ai_ask(
7777
CreateAiAskMode.SINGLE_ITEM_QA,
78-
'which direction sun rises',
78+
'Which direction does the Sun rise?',
7979
[
8080
AiItemAsk(
8181
id=file_to_ask.id,
8282
type=AiItemAskTypeField.FILE,
83-
content='Sun rises in the East',
83+
content='The Sun rises in the east.',
8484
)
8585
],
8686
ai_agent=AiAgentReference(id=created_agent.id),
8787
)
88-
assert 'East' in response.answer
88+
assert 'east' in response.answer
8989
assert response.completion_reason == 'done'
9090
assert len(response.ai_agent_info.models) > 0
9191
client.files.delete_file_by_id(file_to_ask.id)

0 commit comments

Comments
 (0)