Skip to content

Comments

Fix broken tests#76

Merged
alexheifetz merged 1 commit intomainfrom
fix-tests
Oct 14, 2025
Merged

Fix broken tests#76
alexheifetz merged 1 commit intomainfrom
fix-tests

Conversation

@alexheifetz
Copy link
Contributor

This pull request updates how prompts are accessed in the horoscope example tests for both Java and Kotlin. Instead of retrieving the prompt directly, the code now accesses the prompt content through the first message in the invocation. Additionally, the Java test now passes the AI context rather than the generic context to the writeup method.

Prompt handling improvements:

  • Changed prompt retrieval in StarNewsFinderTest.java and StarNewsFinderTest.kt to fetch the prompt content from the first message rather than directly from the invocation. [1] [2]

Test invocation context:

  • Updated the Java test to pass context.ai() instead of context to the writeup method, ensuring the correct context type is used for AI interactions.

@alexheifetz alexheifetz merged commit b91b781 into main Oct 14, 2025
2 checks passed
@alexheifetz alexheifetz deleted the fix-tests branch October 14, 2025 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant