Skip to content

Conversation

@avinash2692
Copy link
Contributor

This solves #51 by adding logs and a turn to MelleaSession.ctx so that we can use session.last_prompt() for generative slots.

@avinash2692 avinash2692 requested a review from nrfulton August 18, 2025 23:15
@avinash2692 avinash2692 changed the title Appending logs to genslot class Appending logs to ctx for genslots Aug 18, 2025
assert len(generate_logs) == 1, "Simple call can only add one generate_log"
generate_logs[0].is_final_result = True

self.ctx.insert_turn(
Copy link
Contributor

@nrfulton nrfulton Aug 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have to admit that I don't quite know if I understand how @HendrikStrobelt intends turns to be used. I am going to approve and merge this PR because we need some visibility for genslots.

@HendrikStrobelt : I'll leave it to you to review this use of insert_turn post-facto when he returns and open an issue (assigned to me and @avinash2692 ) if there are any issues. If there are issues, then we need to both fix them and also document the meaning of last_turn vs. last_prompt vs. last_output.

@nrfulton nrfulton merged commit f0bb0c2 into main Aug 19, 2025
3 checks passed
@nrfulton nrfulton deleted the avi/fix-51-generate-logs branch August 19, 2025 17:10
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.

generative does return the last prompt from MelleaSession.last_prompt()

3 participants