Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/v0.32.0 #1181

Merged
merged 309 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
309 commits
Select commit Hold shift + click to select a range
04af7d1
Update OpenAI image query default model to GPT-4o (#802)
andrewfrench May 23, 2024
2e030bb
Fix/docs extras (#803)
collindutter May 23, 2024
3f3f8b9
Update `init=False` instances (#804)
vachillo May 24, 2024
943ce72
Use environment variables for structure runs (#808)
vachillo May 31, 2024
427df75
chore: update `attr` to `attrs` (#810)
vachillo May 31, 2024
5a0e1c3
Refactor tasks to use ListArtifact as input (#811)
collindutter May 31, 2024
9f78733
Fix type (#813)
collindutter May 31, 2024
9f19f60
Default `off_prompt=False` on `BaseTool` (#757)
collindutter Jun 3, 2024
81ec3b6
Update openai example to use gpt-4o (#817)
collindutter Jun 3, 2024
385cb62
Fix doc examples (#819)
collindutter Jun 3, 2024
ff008c0
Audio transcription support (#781)
andrewfrench Jun 4, 2024
1b1accc
Feature/pusher event driver (#821)
kyleroche Jun 4, 2024
c6cceda
Fix computer tool (#820)
collindutter Jun 4, 2024
7fe0f7d
Don't exlude extra fields (#825)
collindutter Jun 4, 2024
dc9e585
Add support for Llama 3 on Amazon SageMaker (#800)
dylanholmes Jun 4, 2024
1865b64
Fix integ tests (#827)
collindutter Jun 4, 2024
0fade64
Fix out of space issue during integration tests (#828)
collindutter Jun 4, 2024
23018b8
adding docs for griptape-cloud-knowledge-base-client (#824)
emjay07 Jun 4, 2024
3bd2adf
Merge branch 'main' into dev
collindutter Jun 4, 2024
21c17b5
Ignore computer tool due to out of space issues (#830)
collindutter Jun 4, 2024
1042211
Merge branch 'main' into dev
collindutter Jun 4, 2024
a7f83b3
Updated `HuggingFaceHubPromptDriver` to use `transformers`'s `apply_c…
collindutter Jun 5, 2024
7025db8
Updated `HuggingFacePipelinePromptDriver` to use chat features of `tr…
collindutter Jun 5, 2024
8630317
Add task relationship APIs (#822)
dylanholmes Jun 5, 2024
7a137e1
Update cohere prompt driver, add cohere embedding driver, cohere stru…
collindutter Jun 5, 2024
e167885
Update BedrockPromptDriver to use Converse API (#834)
collindutter Jun 5, 2024
8d6de30
Remove un-used header extraction (#838)
collindutter Jun 6, 2024
4e1f3b0
Remove Legacy `OpenAiChatCompletionPromptDriver` (#835)
collindutter Jun 6, 2024
30aa370
Improve error when knowledgebase is missing a description (#839)
collindutter Jun 6, 2024
5e2e1a1
Remove old tokenizer docs (#841)
collindutter Jun 7, 2024
839ffb8
Correctly Ignore TYPE_CHECKING in coverage (#845)
collindutter Jun 7, 2024
029a65d
Reduce scope of Amazon SageMaker Prompt Driver to only Jumpstart (#837)
collindutter Jun 7, 2024
fc9c976
Update `GriptapeCloudKnowledgeBaseClient` description fetching (#846)
vachillo Jun 10, 2024
9c0d368
Fix streaming not working when using deprecated Structure.stream fiel…
collindutter Jun 10, 2024
b466356
Add StructureVisualizer util (#844)
collindutter Jun 11, 2024
75c502f
Add new Workflow/Task helper methods (#842)
collindutter Jun 11, 2024
331c331
Refactor/tokenizers (#840)
collindutter Jun 11, 2024
331c643
adding a link out to sample repo for multi-agents hosted in gtc (#850)
emjay07 Jun 11, 2024
ff6ddfd
Fix `ActionSubtask` output value (#853)
vachillo Jun 11, 2024
b634598
Fix/standardize all links, enable docs strict mode (#852)
collindutter Jun 12, 2024
71c8d4d
Fix header indents (#855)
collindutter Jun 12, 2024
bfd7896
Re-order Workflow tasks on every task execution wave (#857)
cjkindel Jun 12, 2024
7c36226
Handle errors in web loader and return ErrorArtifact (#858)
zachgiordano Jun 13, 2024
e54a04b
Add structure property `output`; add `output_task.output` check (#862)
vachillo Jun 13, 2024
9b934ee
Fix `WebSearch.search` output (#854)
vachillo Jun 13, 2024
5fe8c63
Reset Tasks and set Structure args before run (#865)
collindutter Jun 14, 2024
76f5594
Split `PromptSummaryEngine` prompt stack template (#866)
vachillo Jun 14, 2024
f2342e6
Small improvements to Audio tasks/tools (#843)
andrewfrench Jun 17, 2024
53ca5b1
Validate `max_tokens`, fix tests (#868)
vachillo Jun 18, 2024
6ceadf6
Add 'self.order_tasks()' before getting 'output_task' (#873)
vachillo Jun 18, 2024
3a203ed
Feature/ollama (#847)
collindutter Jun 18, 2024
0f196f5
Add insert_tasks example (#877)
dylanholmes Jun 18, 2024
68d9dae
Don't include "v" in tag name (#879)
collindutter Jun 19, 2024
6ce2615
Merge branch 'main' into dev
collindutter Jun 19, 2024
28a8a14
Update `WebSearch` to use a driver; add drivers for Google and DuckDu…
vachillo Jun 19, 2024
73c1d51
Fix/drivers headers (#881)
collindutter Jun 19, 2024
ab82f3c
Add `ProxyWebScraperDriver` (#886)
vachillo Jun 21, 2024
cff3f79
Update `AmazonBedrockStructureConfig` with helper params (#882)
vachillo Jun 21, 2024
d5d7544
Merge branch 'main' into dev
collindutter Jun 21, 2024
535380c
Replace `VectorQueryEngine` with `RagEngine` (#860)
vasinov Jun 21, 2024
095d12f
Change GriptapeCloudKnowledgeBaseClient to use /search API (#888)
cjkindel Jun 24, 2024
9010fdc
`meta` parameter added to TextArtifact (#891)
cjkindel Jun 24, 2024
c2575f5
Handle error on vector entry not existing (#893)
cjkindel Jun 25, 2024
2df58d5
Bumping gemini to latest version (#892)
emjay07 Jun 25, 2024
80c27cb
VectorStoreClient improvements (#899)
vasinov Jun 25, 2024
22981b1
Wrap future execution with context managers (#898)
vasinov Jun 25, 2024
2a347f3
Bug Fix: Cohere prompts with no history (#900)
emjay07 Jun 25, 2024
6d08c20
Fix `StructureVisualizer.to_url()` (#903)
vachillo Jun 27, 2024
ef07002
Add `fail_fast` parameter to `Structure` (#908)
vachillo Jun 27, 2024
3858cdc
fixing bug for upserting csv artifacts (#909)
emjay07 Jun 27, 2024
b93f209
All `futures_executor` fields renamed to `futures_executor_fn` and no…
vasinov Jun 27, 2024
3ee8c35
Add `BooleanArtifact` (#905)
vachillo Jun 28, 2024
becdc1d
Add pull request template (#921)
collindutter Jul 1, 2024
1cd5588
Fix missing parent error handling in Workflow task insertion (#856)
cjkindel Jul 1, 2024
f8be8ee
Ensure Executor.shutdown() called after task submission in BaseEventL…
dylanholmes Jul 1, 2024
db9051d
`typos` to dev dependencies to catch typos in code/docs. (#923)
collindutter Jul 2, 2024
2dcfe2d
Refactor prompt stack (#861)
collindutter Jul 2, 2024
cfb6e9f
Merge branch 'main' into dev
collindutter Jul 2, 2024
07e2a1c
Add support for Qdrant VectorDB (#928)
vachillo Jul 2, 2024
ef46d1e
Update contributing guidelines (#927)
collindutter Jul 2, 2024
7487441
Fix integration tests; Update `PromptTask` input validation (#931)
vachillo Jul 2, 2024
de2315c
Bump pydantic,urllib3,requests (#933)
vachillo Jul 3, 2024
89b69bc
Use custom discord invite link (#932)
cjkindel Jul 3, 2024
1f09acb
`RagContext` and other `RagEngine` improvements (#930)
vasinov Jul 3, 2024
83a16ac
Update `StructureVisualizer` (#936)
vachillo Jul 3, 2024
d6cf531
Update pyright, fix new pyright errors (#934)
collindutter Jul 3, 2024
c16f3f4
Fix changelog (#938)
collindutter Jul 3, 2024
c785aba
DynamoDB sort key (#917)
datashaman Jul 5, 2024
3e5bd03
Update ruff linter rules according to documentation (#940)
collindutter Jul 5, 2024
731c3bb
`FootnotePromptResponseRagModule`, `TextLoaderRetrievalRagModule`, an…
vasinov Jul 8, 2024
bb158ea
Update certifi (#944)
zachgiordano Jul 8, 2024
c9b92ea
Fix azure streaming (#946)
collindutter Jul 9, 2024
01792c0
Merge branch 'main' into dev
collindutter Jul 9, 2024
4ef133f
Remove duplicate info from changelog (#952)
cjkindel Jul 10, 2024
c20617a
Add Ollama Embedding Driver (#953)
collindutter Jul 10, 2024
d987f1a
Merge branch 'main' into dev
collindutter Jul 10, 2024
8fa35a5
Feature/native functions (#867)
collindutter Jul 10, 2024
0389725
Enable flake8 type check (#960)
collindutter Jul 11, 2024
160a4ef
Enable ruff pydocstyle rules (#959)
collindutter Jul 11, 2024
2056f0e
Add ruff rule for complex code paths (#951)
collindutter Jul 11, 2024
627081e
Add docs for OpenAI compatible services (#962)
collindutter Jul 11, 2024
023f0a9
Merge branch 'main' into dev
collindutter Jul 11, 2024
be9ce34
Native Tool Fixes (#963)
collindutter Jul 11, 2024
afb8cea
Catch tool errors (#965)
collindutter Jul 12, 2024
fe1e991
Add isort ruff rule (#967)
collindutter Jul 12, 2024
9fb4dd9
GriptapeCloudVectorStoreDriver (#885)
cjkindel Jul 12, 2024
3bf5876
Add ruff rule for pygrep-hooks (#966)
collindutter Jul 12, 2024
b8f1128
Merge branch 'main' into dev
collindutter Jul 12, 2024
0a8e178
Fix: Qdrant query count not optional (#972)
cjkindel Jul 13, 2024
e4f8d6f
Add flake8-future-annotations ruff rule (#973)
collindutter Jul 15, 2024
5edfae9
Add flake8-commas ruff rule (#974)
collindutter Jul 15, 2024
9371aab
Enable pycodestyle-warnings ruff rule (#978)
collindutter Jul 15, 2024
71ba852
updating docs to use 35-turbo instead of 35-turbo-16k (#980)
emjay07 Jul 15, 2024
2ee57a6
Enable flake8-comprehensions ruff rule (#977)
collindutter Jul 15, 2024
67a913b
Fully enable flake8-tidy-imports, flake8-print, mccabe (#976)
collindutter Jul 15, 2024
5c4b3a8
Add flake8-annotations ruff rule (#975)
collindutter Jul 15, 2024
b99a828
Add flake8-boolean-trap ruff rule (#985)
collindutter Jul 16, 2024
974a3cb
Run ruff on entire project (#986)
collindutter Jul 16, 2024
f514475
Fix docs header (#979)
collindutter Jul 16, 2024
71a499d
Remove unnecessary dependencies in extras (#989)
collindutter Jul 16, 2024
7c13601
Add default for GriptapeCloudEventListenerDriver.api_key (#990)
dylanholmes Jul 16, 2024
8026409
Fix Windows-specific issues (#992)
collindutter Jul 17, 2024
7d263b9
Improve native tool name check (#968)
collindutter Jul 17, 2024
33469ef
Add observability (#991)
dylanholmes Jul 17, 2024
2c86a25
Add pep8-naming ruff rule (#993)
collindutter Jul 17, 2024
362fac0
Add generic artifact (#983)
collindutter Jul 18, 2024
728ade3
Add More Ruff (#996)
collindutter Jul 18, 2024
331a36b
Fix cohere link (#994)
collindutter Jul 18, 2024
4dc5ae0
Migrate to sqlalchemy 2, make sqlalchemy an optional dependency (#1000)
collindutter Jul 18, 2024
40959cd
Datadog observability driver (#998)
cjkindel Jul 19, 2024
384c78f
Update marqo dependency (#1001)
collindutter Jul 19, 2024
3767c86
Add flake8-logging and flake8-logging-format ruff rules (#999)
collindutter Jul 22, 2024
d451653
Add era ruff rule (#1002)
collindutter Jul 22, 2024
16742ca
Docs Search Improvements (#1004)
collindutter Jul 22, 2024
929e51e
Pin all dependencies using to minor version (#1007)
collindutter Jul 23, 2024
1f690c6
Add EventsMixin (#984)
collindutter Jul 23, 2024
e0581f8
Document accessing Structure output (#1010)
collindutter Jul 23, 2024
c45d3ed
Fix Integration Tests (#1011)
collindutter Jul 23, 2024
19a1ec4
Fix/base install (#1009)
collindutter Jul 23, 2024
bd486f8
Fix/extras naming (#1008)
collindutter Jul 23, 2024
dc3d135
Add furb ruff rule (#1014)
collindutter Jul 24, 2024
535316c
Refactor CsvRowArtifact to inherit from BaseTextArtifact (#1013)
collindutter Jul 24, 2024
e1977ce
Improve performance of image generation tools (#1019)
andrewfrench Jul 25, 2024
9f9ac91
Stable Diffusion 3 local support (#1018)
andrewfrench Jul 29, 2024
a8b98a4
Fix openai function calling messages (#1026)
collindutter Jul 29, 2024
231275d
Add native function calling support to Ollama Prompt Driver (#1027)
collindutter Jul 29, 2024
c1e7f8d
Update issue template (#1029)
vachillo Jul 30, 2024
a296398
Merge branch 'main' into dev
collindutter Jul 30, 2024
47212cf
Clean Up Changelog (#1032)
collindutter Jul 30, 2024
3cb1fe7
Add DataStax Astra DB vector store driver (#1034)
collindutter Jul 31, 2024
0fde001
Add additional param support to WebSearch (#1015)
collindutter Aug 2, 2024
fe53c41
Add docs for Generic Artifact (#1042)
collindutter Aug 2, 2024
7ed58cc
Add structure to Task init (#1035)
vachillo Aug 5, 2024
5d12f95
Fix Adding To Structure For Tool(kit)Task (#1047)
collindutter Aug 7, 2024
dc74234
updating structure run result to return BaseArtifact (#1050)
emjay07 Aug 8, 2024
105f4d0
Added `TranslateQueryRagModule` and updated RAG docs (#1046)
vasinov Aug 8, 2024
443cf29
Add global event bus (#1051)
collindutter Aug 8, 2024
8648aeb
Fix integration test (#1053)
collindutter Aug 8, 2024
4d71d3a
Refactor/doc snippets (#1054)
collindutter Aug 9, 2024
e42cb91
Fix docs type check in make file (#1057)
collindutter Aug 9, 2024
f77d8e8
`ResponseRagStage` and `PromptResponseRagModule` updates (#1056)
vasinov Aug 12, 2024
688bc98
Merge branch 'main' into dev
collindutter Aug 12, 2024
e600334
Global Config (#1045)
collindutter Aug 13, 2024
5fac215
Update griptape-cloud-knowledge-base-client.md
SavagePencil Aug 13, 2024
aea51bb
Rename all Tools for better naming consistency (#1060)
collindutter Aug 13, 2024
bf00088
Modify arguments/return type of add_parent and add_child (#1048)
collindutter Aug 14, 2024
c76b453
Lazily initialize config drivers field (#1062)
collindutter Aug 15, 2024
babc56a
Add logging filters, update config namespaces (#1059)
vachillo Aug 15, 2024
adb660e
Update dependencies, fix emergent issues (#1061)
collindutter Aug 15, 2024
714109b
Add `JsonArtifact` (#937)
vachillo Aug 15, 2024
60037e9
Refactor/task memory cleanup (#1055)
collindutter Aug 15, 2024
9111570
Set logger level in Chat (#1064)
collindutter Aug 15, 2024
4d71eaf
Add RET ruff rule (#1065)
collindutter Aug 15, 2024
54efe3b
Flatten rag tool outputs (#1066)
collindutter Aug 16, 2024
24a6824
Chore/merge (#1072)
collindutter Aug 16, 2024
14a0f0d
Add and integrate `FuturesExecutorMixin` (#1069)
vasinov Aug 16, 2024
a931176
Fix adding ErrorArtifacts to Prompt Stack (#1073)
collindutter Aug 16, 2024
3aaeb6e
`BaseVectorStoreDriver.upsert_text_artifacts` concurrency bugfix (#1074)
vasinov Aug 19, 2024
717753c
Mock DDG in unit tests (#1076)
vachillo Aug 19, 2024
52c1930
Add `GriptapeCloudConversationMemoryDriver` (#1063)
vachillo Aug 19, 2024
0d19b0a
Lazy load driver config fields (#1075)
collindutter Aug 19, 2024
f08f0c3
Refactor/naming (#1078)
collindutter Aug 19, 2024
a6e3af8
Use typed list for Tools (#1077)
collindutter Aug 19, 2024
aeb97f5
Fix type hint for lazy property (#1079)
collindutter Aug 19, 2024
49495dd
Fix integration tests (#1080)
collindutter Aug 19, 2024
ade80a5
Filter out cohere's pydantic warning (#1081)
collindutter Aug 19, 2024
ad4e780
Random thread name for `GriptapeCloudConversationMemoryDriver` (#1082)
vachillo Aug 19, 2024
bd07922
Check if future exists first (#1083)
collindutter Aug 19, 2024
15fdd08
Create engine in factory (#1085)
collindutter Aug 19, 2024
1d84b7f
Refactor/drivers config (#1086)
collindutter Aug 20, 2024
d6dde68
Fixe Task Memory sensitive data example (#1087)
collindutter Aug 20, 2024
c872e7c
Merge Main Into Dev (#1089)
collindutter Aug 20, 2024
92269e1
Fix parsing response with openai-compatible endpoints (#1090)
collindutter Aug 20, 2024
3ae3714
Update Attrs (#1092)
collindutter Aug 21, 2024
7f2ea97
Revert attribute hack (#1091)
collindutter Aug 21, 2024
ce20244
Fix/clarify model (#1094)
collindutter Aug 21, 2024
e00d10e
Update dependencies (#1095)
collindutter Aug 21, 2024
489453e
Chore/main (#1099)
collindutter Aug 21, 2024
e18db16
Add `BaseEvent.meta` (#1103)
vachillo Aug 26, 2024
f2b529a
Add migration guide (#1108)
collindutter Aug 26, 2024
3c604af
Remove many instances of catching exceptions (#1101)
collindutter Aug 26, 2024
ef61c53
Refactor Conversation Memory class and drivers (#1084)
vachillo Aug 27, 2024
4ae9711
Fix issue in `PromptSummaryEngine` (#1111)
vachillo Aug 27, 2024
c1ee9f6
Don't send empty properties (#1112)
collindutter Aug 27, 2024
10c0170
Update GriptapeCloudEventListenerDriver (#1115)
vachillo Aug 29, 2024
49fb104
Migrate GriptapeCloudStructureRunDriver to use `env_var` over `env` f…
cjkindel Aug 29, 2024
ba47112
Fix tts model (#1122)
collindutter Aug 29, 2024
ab25735
Fix missing maxTokens in AmazonBedrockPromptDriver (#1123)
collindutter Aug 29, 2024
a6a294f
initial cloud docs for data sources, knowledge bases, and structures …
emjay07 Aug 29, 2024
6b0bfa2
Add dependabot auto updates (#1124)
collindutter Aug 30, 2024
2b1566a
Use textual value for reranking (#1121)
collindutter Sep 3, 2024
39da2bb
Merge main into dev (#1126)
collindutter Sep 3, 2024
4087de9
Update griptape-cloud-knowledge-base-tool.md with new api-keys link (…
william-price01 Sep 3, 2024
a7bfc14
Chore/main (#1129)
collindutter Sep 3, 2024
6935587
Chore/main (#1131)
collindutter Sep 3, 2024
ec8ba24
Fix location of dependabot configuration (#1132)
collindutter Sep 4, 2024
f21e493
Bump actions/checkout from 3 to 4 (#1133)
dependabot[bot] Sep 4, 2024
be5850a
Bump anthropic from 0.29.2 to 0.34.2 (#1134)
dependabot[bot] Sep 4, 2024
7a22856
Bump typos from 1.23.6 to 1.24.5 (#1135)
dependabot[bot] Sep 4, 2024
c2ee3dd
Create dependabot groups, update for minor/patch (#1139)
collindutter Sep 4, 2024
f11b594
Bump boto3-stubs from 1.35.2 to 1.35.11 (#1136)
dependabot[bot] Sep 4, 2024
01b68fb
Bump the dependencies group with 15 updates (#1140)
dependabot[bot] Sep 4, 2024
aeaa4f9
Bump the group-dependencies group with 7 updates (#1141)
dependabot[bot] Sep 4, 2024
a1ad5b7
Update list of rag modules (#1146)
collindutter Sep 5, 2024
21c9d21
Revert "Filter out cohere's pydantic warning (#1081)" (#1147)
billytrend-cohere Sep 5, 2024
dc569b3
Bump cryptography from 43.0.0 to 43.0.1 (#1145)
dependabot[bot] Sep 5, 2024
9735d88
Don't rerank empty docs (#1153)
collindutter Sep 6, 2024
5b56867
Add `AzureOpenAiTextToSpeechDriver` (#1150)
vachillo Sep 9, 2024
46823ca
Bump the dependencies group with 4 updates (#1156)
dependabot[bot] Sep 9, 2024
e6a04c7
Bump the group-dependencies group with 4 updates (#1157)
dependabot[bot] Sep 9, 2024
9d9b643
Removed the `__all__` declaration from the `griptape.mixins` module. …
collindutter Sep 10, 2024
4bf3d57
Add ability to use EventListener as Context Manager (#1163)
collindutter Sep 11, 2024
2ae50b3
Add JsonSchemaRule (#1165)
collindutter Sep 11, 2024
c6d2f9e
Drivers Config Context Manager (#1162)
collindutter Sep 11, 2024
01c8e7d
Add AzureOpenAiTextToSpeech driver in config (#1169)
vachillo Sep 12, 2024
86100db
Show mixing and matching Drivers in custom example (#1168)
collindutter Sep 13, 2024
37d5582
Refactor Artifacts (#1114)
collindutter Sep 13, 2024
f912943
Bump the dependencies group with 12 updates (#1176)
dependabot[bot] Sep 16, 2024
8ef6f5f
Bump the group-dependencies group with 5 updates (#1177)
dependabot[bot] Sep 16, 2024
c3f5d49
Improve JsonSchemaRule template (#1175)
collindutter Sep 17, 2024
c117166
Update `GriptapeCloudStructureRunDriver` to look for completed status…
vachillo Sep 17, 2024
04057a1
adding initial docs for structure as transform (#1172)
emjay07 Sep 17, 2024
dea3d0b
Version bump v0.32.0
collindutter Sep 17, 2024
eb35a3d
Merge branch 'main' into release/v0.32.0
collindutter Sep 17, 2024
2362882
Update changelog
collindutter Sep 17, 2024
27758a3
Trigger build
collindutter Sep 17, 2024
540311b
Fix actions cache key (#1182)
vachillo Sep 17, 2024
b27d258
Fix actions cache key (#1183)
vachillo Sep 17, 2024
6f388c8
Merge branch 'dev' into release/v0.32.0
collindutter Sep 17, 2024
9543aed
Merge branch 'dev' into release/v0.32.0
collindutter Sep 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .dependabot.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .github/actions/init-bare-environment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ runs:
- name: Checkout actions
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
- id: setup-python
name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
Expand Down
3 changes: 2 additions & 1 deletion .github/actions/init-environment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ runs:
- name: Checkout actions
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
- id: setup-python
name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
Expand Down
21 changes: 21 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
groups:
dependencies:
dependency-type: "production"
update-types:
- "minor"
- "patch"
group-dependencies:
dependency-type: "development"
update-types:
- "minor"
- "patch"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
10 changes: 5 additions & 5 deletions .github/workflows/code-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
python-version: ["3.12"]
steps:
- name: Checkout actions
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Init environment
uses: ./.github/actions/init-environment
- name: Run formatter
Expand All @@ -32,7 +32,7 @@ jobs:
python-version: [ "3.12" ]
steps:
- name: Checkout actions
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Init environment
uses: ./.github/actions/init-environment
- name: Run type checker
Expand All @@ -45,7 +45,7 @@ jobs:
python-version: [ "3.12" ]
steps:
- name: Checkout actions
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Init environment
uses: ./.github/actions/init-environment
- name: Run linter
Expand All @@ -58,7 +58,7 @@ jobs:
python-version: ["3.12"]
steps:
- name: Checkout actions
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Init environment
uses: ./.github/actions/init-environment
- name: Run unit tests
Expand All @@ -78,7 +78,7 @@ jobs:
python-version: [ "3.12" ]
steps:
- name: Checkout actions
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Init environment
uses: ./.github/actions/init-environment
- name: Run linter
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/docs-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ jobs:
AZURE_OPENAI_API_KEY_2: ${{ secrets.INTEG_AZURE_OPENAI_API_KEY_2 }}
AZURE_OPENAI_ENDPOINT_3: ${{ secrets.INTEG_AZURE_OPENAI_ENDPOINT_3 }}
AZURE_OPENAI_API_KEY_3: ${{ secrets.INTEG_AZURE_OPENAI_API_KEY_3 }}
AZURE_OPENAI_ENDPOINT_4: ${{ secrets.INTEG_AZURE_OPENAI_ENDPOINT_4 }}
AZURE_OPENAI_API_KEY_4: ${{ secrets.INTEG_AZURE_OPENAI_API_KEY_4 }}
AZURE_OPENAI_35_TURBO_16K_DEPLOYMENT_ID: ${{ secrets.INTEG_OPENAI_35_TURBO_16K_DEPLOYMENT_ID }}
AZURE_OPENAI_35_TURBO_DEPLOYMENT_ID: ${{ secrets.INTEG_OPENAI_35_TURBO_DEPLOYMENT_ID }}
AZURE_OPENAI_DAVINCI_DEPLOYMENT_ID: ${{ secrets.INTEG_OPENAI_DAVINCI_DEPLOYMENT_ID }}
Expand Down Expand Up @@ -137,7 +139,7 @@ jobs:
--health-retries 5
steps:
- name: Checkout actions
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Init environment
uses: ./.github/actions/init-environment
- name: Run integration tests
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout actions
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Init environment
uses: ./.github/actions/init-environment
- name: Run unit tests
Expand All @@ -32,7 +32,7 @@ jobs:
python-version: ["3.9"]
steps:
- name: Checkout actions
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Init environment
uses: ./.github/actions/init-bare-environment
- name: Run unit tests
Expand All @@ -48,7 +48,7 @@ jobs:
shell: bash
steps:
- name: Checkout actions
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Init environment
uses: ./.github/actions/init-environment
- name: Run unit tests
Expand Down
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,38 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## [0.32.0] - 2024-09-17

### Added
- `BaseArtifact.to_bytes()` method to convert an Artifact's value to bytes.
- `BlobArtifact.base64` property for converting a `BlobArtifact`'s value to a base64 string.
- `CsvLoader`/`SqlLoader`/`DataframeLoader` `formatter_fn` field for customizing how SQL results are formatted into `TextArtifact`s.
- `AzureOpenAiTextToSpeechDriver`.
- `JsonSchemaRule` for instructing the LLM to output a JSON object that conforms to a schema.
- Ability to use Event Listeners as Context Managers for temporarily setting the Event Bus listeners.
- Ability to use Drivers Configs as Context Managers for temporarily setting the default Drivers.
- Generic type support to `ListArtifact`.
- Iteration support to `ListArtifact`.


### Changed
- **BREAKING**: Removed `CsvRowArtifact`. Use `TextArtifact` instead.
- **BREAKING**: Removed `MediaArtifact`, use `ImageArtifact` or `AudioArtifact` instead.
- **BREAKING**: `CsvLoader`, `DataframeLoader`, and `SqlLoader` now return `list[TextArtifact]`.
- **BREAKING**: Removed `ImageArtifact.media_type`.
- **BREAKING**: Removed `AudioArtifact.media_type`.
- **BREAKING**: Removed `BlobArtifact.dir_name`.
- **BREAKING**: Moved `ImageArtifact.prompt` and `ImageArtifact.model` into `ImageArtifact.meta`.
- **BREAKING**: `ImageArtifact.format` is now required.
- **BREAKING**: Removed the `__all__` declaration from the `griptape.mixins` module.
- Updated `JsonArtifact` value converter to properly handle more types.
- `AudioArtifact` now subclasses `BlobArtifact` instead of `MediaArtifact`.
- `ImageArtifact` now subclasses `BlobArtifact` instead of `MediaArtifact`.
- Removed `__add__` method from `BaseArtifact`, implemented it where necessary.

### Fixed
- Crash when passing "empty" Artifacts or no Artifacts to `CohereRerankDriver`.

## [0.31.0] - 2024-09-03

**Note**: This release includes breaking changes. Please refer to the [Migration Guide](./MIGRATION.md#030x-to-031x) for details.
Expand Down
136 changes: 136 additions & 0 deletions MIGRATION.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,142 @@
# Migration Guide

This document provides instructions for migrating your codebase to accommodate breaking changes introduced in new versions of Griptape.
## 0.31.X to 0.32.X

### Removed `MediaArtifact`

`MediaArtifact` has been removed. Use `ImageArtifact` or `AudioArtifact` instead.

#### Before

```python
image_media = MediaArtifact(
b"image_data",
media_type="image",
format="jpeg"
)

audio_media = MediaArtifact(
b"audio_data",
media_type="audio",
format="wav"
)
```

#### After
```python
image_artifact = ImageArtifact(
b"image_data",
format="jpeg"
)

audio_artifact = AudioArtifact(
b"audio_data",
format="wav"
)
```

### `ImageArtifact.format` is now required

`ImageArtifact.format` is now a required parameter. Update any code that does not provide a `format` parameter.

#### Before

```python
image_artifact = ImageArtifact(
b"image_data"
)
```

#### After
```python
image_artifact = ImageArtifact(
b"image_data",
format="jpeg"
)
```

### Removed `CsvRowArtifact`

`CsvRowArtifact` has been removed. Use `TextArtifact` instead.

#### Before

```python
artifact = CsvRowArtifact({"name": "John", "age": 30})
print(artifact.value) # {"name": "John", "age": 30}
print(type(artifact.value)) # <class 'dict'>
```

#### After
```python
artifact = TextArtifact("name: John\nage: 30")
print(artifact.value) # name: John\nage: 30
print(type(artifact.value)) # <class 'str'>
```

If you require storing a dictionary as an Artifact, you can use `GenericArtifact` instead.

### `CsvLoader`, `DataframeLoader`, and `SqlLoader` return types

`CsvLoader`, `DataframeLoader`, and `SqlLoader` now return a `list[TextArtifact]` instead of `list[CsvRowArtifact]`.

If you require a dictionary, set a custom `formatter_fn` and then parse the text to a dictionary.

#### Before

```python
results = CsvLoader().load(Path("people.csv").read_text())

print(results[0].value) # {"name": "John", "age": 30}
print(type(results[0].value)) # <class 'dict'>
```

#### After
```python
results = CsvLoader().load(Path("people.csv").read_text())

print(results[0].value) # name: John\nAge: 30
print(type(results[0].value)) # <class 'str'>

# Customize formatter_fn
results = CsvLoader(formatter_fn=lambda x: json.dumps(x)).load(Path("people.csv").read_text())
print(results[0].value) # {"name": "John", "age": 30}
print(type(results[0].value)) # <class 'str'>

dict_results = [json.loads(result.value) for result in results]
print(dict_results[0]) # {"name": "John", "age": 30}
print(type(dict_results[0])) # <class 'dict'>
```

### Moved `ImageArtifact.prompt` and `ImageArtifact.model` to `ImageArtifact.meta`

`ImageArtifact.prompt` and `ImageArtifact.model` have been moved to `ImageArtifact.meta`.

#### Before

```python
image_artifact = ImageArtifact(
b"image_data",
format="jpeg",
prompt="Generate an image of a cat",
model="DALL-E"
)

print(image_artifact.prompt, image_artifact.model) # Generate an image of a cat, DALL-E
```

#### After
```python
image_artifact = ImageArtifact(
b"image_data",
format="jpeg",
meta={"prompt": "Generate an image of a cat", "model": "DALL-E"}
)

print(image_artifact.meta["prompt"], image_artifact.meta["model"]) # Generate an image of a cat, DALL-E
```


## 0.30.X to 0.31.X

Expand Down
8 changes: 7 additions & 1 deletion docs/griptape-cloud/data-sources/create-data-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ You can connect to your personal or company Confluence by providing a URL, [Atla

You can specify a [Structure](../structures/create-structure.md) to run as a Data Source as long as your Structure returns a [`TextArtifact` or `ListArtifact` from the Griptape Framework](../../griptape-framework/data/artifacts.md). You can use this as a way to build custom Data Sources.

## Other Data Source Types
### Other Data Source Types

If you do not see a Data Source configuration you'd wish to use, you can submit a request via [Discord](https://discord.gg/gnWRz88eym) or `hello@griptape.ai`.

## Adding Structure as Transform to Data Source (Experimental)

When creating any Data Source, you can optionally specify a [Structure](../structures/create-structure.md) to run as a transform step of your data ingetstion before loading into the vector store. Ensure the Structure you select to run as a transform is configured to take in a `ListArtifact` as its first positional argument and returns either a `TextArtifact` or `ListArtifact`.

Take a look at the [Find and Replace Sample Structure](https://github.com/griptape-ai/griptape-sample-structures/tree/main/griptape-find-replace-transform) for more details on how to implement this for your own Structure.
Loading
Loading