agent
Agent
Bases: Structure
Agent
Bases: Structure
griptape/structures/agent.py
fail_fast: bool = field(default=False, kw_only=True)
class-attribute
instance-attribute
input: str | list | tuple | BaseArtifact | Callable[[BaseTask], BaseArtifact] = field(default=lambda task: task.full_context['args'][0] if task.full_context['args'] else TextArtifact(value=''))
class-attribute
instance-attribute
max_meta_memory_entries: Optional[int] = field(default=20, kw_only=True)
class-attribute
instance-attribute
prompt_driver: BasePromptDriver = field(default=Factory(lambda: Defaults.drivers_config.prompt_driver), kw_only=True)
class-attribute
instance-attribute
stream: bool = field(default=Factory(lambda: Defaults.drivers_config.prompt_driver.stream), kw_only=True)
class-attribute
instance-attribute
task: BaseTask
property
tools: list[BaseTool] = field(factory=list, kw_only=True)
class-attribute
instance-attribute
__attrs_post_init__()
griptape/structures/agent.py
add_task(task)
add_tasks(*tasks)
try_run(*args)
validate_fail_fast(_, fail_fast)