Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Step and Message initialization #19

Merged
merged 3 commits into from
Dec 11, 2023
Merged

Fix Step and Message initialization #19

merged 3 commits into from
Dec 11, 2023

Conversation

tpatel
Copy link

@tpatel tpatel commented Dec 11, 2023

  • When initializing a Step or Message object, you don't want to push it to the global context if this is just an object returned by the API
  • Now the Step is only pushed to the context stack if it's created with .start_step, the context manager or the decorator.
  • Changed step.finalize() to step.end() to use a simpler word.
  • Added one test for the step stopping

@tpatel tpatel self-assigned this Dec 11, 2023
- When initializing a Step or Message object, you don't want to push it to the global context if this is just an object returned by the API
- Now the Step is only pushed to the context stack if it's created with `.start_step`, the context manager or the decorator.
- Changed `step.finalize()` to `step.stop()` to use a simpler word.
- Added one test for the step stopping
@tpatel tpatel merged commit 127c0ee into main Dec 11, 2023
1 check failed
@tpatel tpatel deleted the tp/step-init branch December 11, 2023 18:08
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