Skip to content

Commit

Permalink
docs, changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
vachillo committed Oct 18, 2024
1 parent 69bea75 commit 20f8f91
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `Chat.output_fn`'s now takes an optional kwarg parameter, `stream`.
- Implemented `SerializableMixin` in `Structure`, `BaseTask`, `BaseTool`, and `TaskMemory`
- `@activity` decorated functions can now accept kwargs that are defined in the activity schema.
- `EventListener.event_types` will now listen on child types of any provided type.

### Fixed

Expand Down
2 changes: 1 addition & 1 deletion docs/griptape-framework/misc/src/events_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def action_chunk_listener(event: ActionChunkEvent) -> None:
if event.tag is not None and event.name is not None and event.path is not None:
print(f"{event.name}.{event.tag} ({event.path}) ", end="", flush=True)
if event.partial_input is not None:
print(event.partial_input)
print(event.partial_input, end="", flush=True)


EventBus.add_event_listeners(
Expand Down
2 changes: 1 addition & 1 deletion griptape/utils/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def run(self, *args) -> Iterator[TextArtifact]:
yield TextArtifact(value=event.token)
elif isinstance(event, ActionChunkEvent):
if event.tag is not None and event.name is not None and event.path is not None:
yield TextArtifact(f"{event.name}.{event.tag}({event.path})")
yield TextArtifact(f"{event.name}.{event.tag} ({event.path})")
if event.partial_input is not None:
action_str += event.partial_input
try:
Expand Down

0 comments on commit 20f8f91

Please sign in to comment.