Releases: griptape-ai/griptape
Releases · griptape-ai/griptape
v0.25.1
Fixed
- Honor
namespace
inRedisVectorStoreDriver.query()
. - Correctly set the
meta
,score
, andvector
fields of query result returned fromRedisVectorStoreDriver.query()
. - Standardize behavior between omitted and empty actions list when initializing
ActionsSubtask
.
Added
- Optional event batching on Event Listener Drivers.
id
field to all events.
Changed
- Default behavior of Event Listener Drivers to batch events.
- Default behavior of OpenAiStructureConfig to utilize
gpt-4o
for prompt_driver.
v0.25.0
Added
list_files_from_disk
activity toFileManager
Tool.- Support for Drivers in
EventListener
. AmazonSqsEventListenerDriver
for sending events to an Amazon SQS queue.AwsIotCoreEventListenerDriver
for sending events to a topic on AWS IoT Core.GriptapeCloudEventListenerDriver
for sending events to Griptape Cloud.WebhookEventListenerDriver
for sending events to a webhook.BaseFileManagerDriver
to abstract file management operations.LocalFileManagerDriver
for managing files on the local file system.- Optional
BaseLoader.encoding
field. BlobLoader
for loading arbitrary binary data as aBlobArtifact
.model
field toStartPromptEvent
andFinishPromptEvent
.input_task_input
andinput_task_output
fields toStartStructureRunEvent
.output_task_input
andoutput_task_output
fields toFinishStructureRunEvent
.AmazonS3FileManagerDriver
for managing files on Amazon S3.MediaArtifact
as a base class forImageArtifact
and future media Artifacts.- Optional
exception
field toErrorArtifact
. StructureRunClient
for running other Structures via a Tool.StructureRunTask
for running Structures as a Task from within another Structure.GriptapeCloudStructureRunDriver
for running Structures in Griptape Cloud.LocalStructureRunDriver
for running Structures in the same run-time environment as the code that is running the Structure.
Changed
- BREAKING: Secret fields (ex: api_key) removed from serialized Drivers.
- BREAKING: Remove
FileLoader
. - BREAKING:
CsvLoader
no longer acceptsstr
file paths as a source. It will now accept the content of the CSV file as astr
orbytes
object. - BREAKING:
PdfLoader
no longer acceptsstr
file content,Path
file paths orIO
objects as sources. Instead, it will only accept the content of the PDF file as abytes
object. - BREAKING:
TextLoader
no longer acceptsPath
file paths as a source. It will now accept the content of the text file as astr
orbytes
object. - BREAKING:
FileManager.default_loader
is nowNone
by default. - BREAKING Bumped
pinecone
from^2
to^3
. - BREAKING: Removed
workdir
,loaders
,default_loader
, andsave_file_encoding
fields fromFileManager
and addedfile_manager_driver
. - BREAKING: Removed
mime_type
field fromImageArtifact
.mime_type
is now a property constructed using the Artifact type andformat
field. - Improved RAG performance in
VectorQueryEngine
. - Moved Griptape Docs to this repository.
- Updated
EventListener.handler
's behavior so that the return value will be passed to theEventListenerDriver.try_publish_event_payload
'sevent_payload
parameter.
Fixed
- Type hint for parameter
azure_ad_token_provider
on Azure OpenAI drivers toOptional[Callable[[], str]]
. - Missing parameters
azure_ad_token
andazure_ad_token_provider
on the default client forAzureOpenAiCompletionPromptDriver
.
v0.24.1
What's Changed
- Move boto3 stubs to dev group, add type checking guard by @collindutter in #716
- Removed the
jsonschema
dependency by @vasinov in #718 - Release v0.24.1 by @andrewfrench in #719
Full Changelog: v0.24.0...v0.24.1
v0.24.0
Added
- Every subtask in
ToolkitTask
can now execute multiple actions in parallel. - Added
BaseActionsSubtaskEvent.subtask_actions
. - Support for
text-embedding-3-small
andtext-embedding-3-large
models. GooglePromptDriver
andGoogleTokenizer
for use withgemini-pro
.GoogleEmbeddingDriver
for use withembedding-001
.GoogleStructureConfig
for providing Structures with Google Prompt and Embedding Driver configuration.- Support for
claude-3-opus
,claude-3-sonnet
, andclaude-3-haiku
inAnthropicPromptDriver
. - Support for
anthropic.claude-3-sonnet-20240229-v1:0
andanthropic.claude-3-haiku-20240307-v1:0
inBedrockClaudePromptModelDriver
. top_k
andtop_p
parameters inAnthropicPromptDriver
.- Added
AnthropicImageQueryDriver
for Claude-3 multi-modal models - Added
AmazonBedrockImageQueryDriver
along withBedrockClaudeImageQueryDriverModel
for Claude-3 in Bedrock support BaseWebScraperDriver
allowing multiple web scraping implementations.TrafilaturaWebScraperDriver
for scraping text from web pages using trafilatura.MarkdownifyWebScraperDriver
for scraping text from web pages using playwright and converting to markdown using markdownify.VoyageAiEmbeddingDriver
for use with VoyageAi's embedding models.AnthropicStructureConfig
for providing Structures with Anthropic Prompt and VoyageAi Embedding Driver configuration.
Fixed
- Improved system prompt in
ToolTask
to support more use cases.
Changed
- BREAKING:
ActionSubtask
was renamed toActionsSubtask
. - BREAKING: Removed
subtask_action_name
,subtask_action_path
, andsubtask_action_input
inBaseActionsSubtaskEvent
. - BREAKING:
OpenAiVisionImageQueryDriver
fieldmodel
no longer defaults togpt-4-vision-preview
and must be specified - Default model of
OpenAiEmbeddingDriver
totext-embedding-3-small
. - Default model of
OpenAiStructureConfig
totext-embedding-3-small
. BaseTextLoader
to accept aBaseChunker
.- Default model of
AmazonBedrockStructureConfig
toanthropic.claude-3-sonnet-20240229-v1:0
. AnthropicPromptDriver
andBedrockClaudePromptModelDriver
to use Anthropic's Messages API.OpenAiVisionImageQueryDriver
now has a required fieldmax_tokens
that defaults to 256
v0.23.2
Fixed
- Deprecation warnings not displaying for
Structure.prompt_driver
,Structure.embedding_driver
, andStructure.stream
. DummyException
error message not fully displaying.StructureConfig.task_memory
not defaulting to usingStructureConfig.global_drivers
by default.
v0.23.1
Fixed
- Action Subtask incorrectly raising an exception for actions without an input.
- Incorrect
GriptapeCloudKnowledgeBaseClient
's API URLs. - Issue with Tool Task system prompt causing the LLM to generate an invalid action.
v0.23.0
Griptape v0.23.0
Added
- Image-to-image generation support for OpenAi Dall-E 2 model.
- Image tools support loading artifacts from Task Memory.
AzureMongoDbVectorStoreDriver
for using CosmosDB with MongoDB vCore API.vector_path
field onMongoDbAtlasVectorStoreDriver
.LeonardoImageGenerationDriver
supports image to image generation.OpenAiStructureConfig
for providing Structures with all OpenAi Driver configuration.AmazonBedrockStructureConfig
for providing Structures with all Amazon Bedrock Driver configuration.StructureConfig
for building your own Structure configuration.JsonExtractionTask
for convenience over usingExtractionTask
with aJsonExtractionEngine
.CsvExtractionTask
for convenience over usingExtractionTask
with aCsvExtractionEngine
.OpenAiVisionImageQueryDriver
to support queries on images using OpenAI's Vision model.ImageQueryClient
allowing an Agent to make queries on images on disk or in Task Memory.- New
ImageQueryTask
andImageQueryEngine
. - Delete record functionality in Vector Store Drivers.
- Allow setting optional headers in
RestApiClient
.
Fixed
BedrockStableDiffusionImageGenerationModelDriver
request parameters for SDXLv1.BedrockStableDiffusionImageGenerationModelDriver
correctly handles the CONTENT_FILTERED response case.- Resolved many Pyright static analysis issues.
Changed
- BREAKING: Make
index_name
onMongoDbAtlasVectorStoreDriver
a required field. - BREAKING: Remove
create_index()
fromMarqoVectorStoreDriver
,OpenSearchVectorStoreDriver
,PineconeVectorStoreDriver
,RedisVectorStoreDriver
. - BREAKING:
ImageLoader().load()
now accepts image bytes instead of a file path. - Deprecated
Structure.prompt_driver
in favor ofStructure.config.global_drivers.prompt_driver
. - Deprecated
Structure.embedding_driver
in favor ofStructure.config.global_drivers.embedding_driver
. - Deprecated
Structure.stream
in favor ofStructure.config.global_drivers.prompt_driver.stream
. TextSummaryTask.summary_engine
now defaults to aPromptSummaryEngine
with a Prompt Driver default ofStructure.config.global_drivers.prompt_driver
.TextQueryTask.query_engine
now defaults to aVectorQueryEngine
with a Prompt Driver default ofStructure.config.global_drivers.prompt_driver
and Vector Store Driver default ofStructure.config.global_drivers.vector_store_driver
.PromptImageGenerationTask.image_generation_engine
now defaults to aPromptImageGenerationEngine
with an Image Generation Driver default ofStructure.config.global_drivers.image_generation_driver
.VariationImageGenerationTask.image_generation_engine
now defaults to aVariationImageGenerationEngine
with an Image Generation Driver default ofStructure.config.global_drivers.image_generation_driver
.InpaintingImageGenerationTask.image_generation_engine
now defaults to anInpaintingImageGenerationEngine
with an Image Generation Driver default ofStructure.config.global_drivers.image_generation_driver
.OutpaintingImageGenerationTask.image_generation_engine
now defaults to anOutpaintingImageGenerationEngine
with an Image Generation Driver default ofStructure.config.global_drivers.image_generation_driver
.AwsS3Client
sets name of returned artifact to downloaded object key.
New Contributors
- @bjorger made their first contribution in #533
- @igor-2lemetry made their first contribution in #598
- @vachillo made their first contribution in #596
- @cjkindel made their first contribution in #604
Full Changelog: v0.22.3...v0.23.0
v0.22.3
[0.22.3] - 2024-01-22
Fixed
ToolkitTask
's user subtask prompt occasionally causing the Task to end prematurely.
v0.22.2
Fixed
ToolkitTask
's user subtask prompt occassionally causing a loop with Chain of Thought.
v0.22.1
Fixed
- Action Subtasks incorrectly outputting the Task input after failing to follow the ReAct prompt.