toolkit_task
Adapted from the Griptape AI Framework documentation.
Bases:
PromptTask
Source Code in griptape/tasks/toolkit_task.py
@define class ToolkitTask(PromptTask): def try_run(self) -> ListArtifact | TextArtifact | AudioArtifact | GenericArtifact | JsonArtifact | ErrorArtifact: warnings.warn( "`ToolkitTask` is deprecated and will be removed in a future release. `PromptTask` is a drop-in replacement.", DeprecationWarning, stacklevel=2, ) return super().try_run()
try_run()
Source Code in griptape/tasks/toolkit_task.py
def try_run(self) -> ListArtifact | TextArtifact | AudioArtifact | GenericArtifact | JsonArtifact | ErrorArtifact: warnings.warn( "`ToolkitTask` is deprecated and will be removed in a future release. `PromptTask` is a drop-in replacement.", DeprecationWarning, stacklevel=2, ) return super().try_run()
- On this page
- try_run()
Could this page be better? Report a problem or suggest an addition!