assistant_task
Adapted from the Griptape AI Framework documentation.
Bases:
BaseTextInputTask[TextArtifact]
Attributes
Name | Type | Description |
---|---|---|
assistant_driver | BaseAssistantDriver | Driver to run the Assistant. |
Source Code in griptape/tasks/assistant_task.py
@define class AssistantTask(BaseTextInputTask[TextArtifact]): """Task to run an Assistant. Attributes: assistant_driver: Driver to run the Assistant. """ assistant_driver: BaseAssistantDriver = field(kw_only=True) def try_run(self) -> TextArtifact: return self.assistant_driver.run(self.input)
assistant_driver = field(kw_only=True)
class-attribute instance-attribute
try_run()
Source Code in griptape/tasks/assistant_task.py
def try_run(self) -> TextArtifact: return self.assistant_driver.run(self.input)
- On this page
- Attributes
- try_run()
Could this page be better? Report a problem or suggest an addition!