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

Add new fields to events #742

Merged
merged 1 commit into from
Apr 11, 2024
Merged

Add new fields to events #742

merged 1 commit into from
Apr 11, 2024

Conversation

collindutter
Copy link
Member

@collindutter collindutter commented Apr 11, 2024

Closes #739

Also adds Structure output/input values to Start/FinishStructureRunEvent

@collindutter collindutter requested review from andrewfrench and a team April 11, 2024 17:57
@@ -18,6 +18,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `LocalFileManagerDriver` for managing files on the local file system.
- Added optional `BaseLoader.encoding` field.
- `BlobLoader` for loading arbitrary binary data as a `BlobArtifact`.
- `model` field to `StartPromptEvent` and `FinishPromptEvent`.
- `input_task_input` and `input_task_output` fields to `StartStructureRunEvent`.
Copy link
Member Author

Choose a reason for hiding this comment

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

Ugly names :(

Comment on lines +12 to +14
input_task_input: Union[
BaseArtifact, tuple[BaseArtifact, ...], tuple[BaseArtifact, Sequence[BaseArtifact]]
] = field(kw_only=True, metadata={"serializable": True})
Copy link
Member

Choose a reason for hiding this comment

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

Not for this PR, but maybe we should define all these artifact output options as a union type?

@collindutter collindutter merged commit fa2f337 into dev Apr 11, 2024
6 checks passed
@collindutter collindutter deleted the feature/event-updates branch April 11, 2024 20:26
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.

Add model to emitted events.
2 participants