Skip to content

Commit

Permalink
Create engine in factory (#1085)
Browse files Browse the repository at this point in the history
  • Loading branch information
collindutter authored Aug 19, 2024
1 parent bd07922 commit 15fdd08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions griptape/tools/prompt_summary/tool.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

from attrs import define, field
from attrs import Factory, define, field
from schema import Literal, Or, Schema

from griptape.artifacts import BaseArtifact, ErrorArtifact, ListArtifact, TextArtifact
Expand All @@ -18,7 +18,7 @@ class PromptSummaryTool(BaseTool, RuleMixin):
prompt_summary_engine: `PromptSummaryEngine`.
"""

prompt_summary_engine: PromptSummaryEngine = field(kw_only=True, default=PromptSummaryEngine())
prompt_summary_engine: PromptSummaryEngine = field(kw_only=True, default=Factory(lambda: PromptSummaryEngine()))

@activity(
config={
Expand Down

0 comments on commit 15fdd08

Please sign in to comment.