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

Search Google Drive documents and retrieve contents #265

Merged
merged 36 commits into from
Mar 7, 2025
Merged
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
b9cb400
move utils and models to top-level dir, out of tools dir
byrro Feb 20, 2025
ecc893a
support ordering by multiple fields (without breaking previous implem…
byrro Feb 20, 2025
6132e02
add support to pagination token on list_documents
byrro Feb 20, 2025
d61d8ab
change title_keywords to name_keywords (a title / heading is usually …
byrro Feb 20, 2025
f56b075
update page_token to pagination_token
byrro Feb 20, 2025
c2338db
improve how query elements are joined to avoid a trailing or multiple…
byrro Feb 20, 2025
b8525c9
arguments to negate keywords in doc name and contents
byrro Feb 20, 2025
4ceeb32
remove reference to ToolContext function not available in previous ve…
byrro Feb 20, 2025
811ec24
highlight negation arg annotation; remove obvious comments
byrro Feb 20, 2025
4a7e1f5
basic implementation for RAG tool that searches and retrieves docs
byrro Feb 23, 2025
ccede21
convert google document json to markdown (save tokens in llm context)
byrro Feb 24, 2025
d811706
unit test for doc-to-markdown
byrro Feb 24, 2025
5d7e9cc
add document metadata at the top of the markdown generated
byrro Feb 24, 2025
3233785
reference enum values, instead of hard-coded strings
byrro Feb 24, 2025
b17cb45
unit test for search-and-retrieve-docs tool
byrro Feb 24, 2025
99dc2f5
fix return type and improve function name
byrro Feb 24, 2025
7d72377
update / improve evals
byrro Feb 24, 2025
455d0d2
evals for search-and-retrieve tool
byrro Feb 24, 2025
bbe371c
merge title and body query arguments in list_documents to simplify fo…
byrro Feb 24, 2025
1fac35f
improve argument annotations; update evals
byrro Feb 24, 2025
f62b48b
Merge branch 'main' into renato/drive-search-files
byrro Feb 25, 2025
5813cf7
fix bug in doc-to-markdown/html when document had a non-textual element
byrro Feb 25, 2025
12c6f52
Merge branch 'main' into renato/drive-search-files
byrro Feb 26, 2025
fbd3d8c
make return format an argument in search-and-retrieve-docs; offer Mar…
byrro Feb 26, 2025
b5022d3
deprecate 'list_functions' in favor of 'search_documents'; improve in…
byrro Feb 27, 2025
b57be9b
change document query str build logic to avoid 'unmatched (' issue in…
byrro Feb 27, 2025
5d611bf
organize files.list param building in a util function
byrro Mar 3, 2025
b3319bf
improve arg annotations and document format conversion
byrro Mar 3, 2025
8839ff4
merge main into renato/drive-search-files
byrro Mar 3, 2025
c12fc5a
merge main into renato/drive-search-files*
byrro Mar 3, 2025
13a53ec
do not include shared drives by default when searching documents
byrro Mar 3, 2025
ac93f60
make mimetype an argument to build files_list query/paramns
byrro Mar 3, 2025
d6c61a8
fix bug in files.list query building
byrro Mar 4, 2025
3574603
Fix test
EricGustin Mar 5, 2025
fb3ef21
merge main into renato/drive-search-files
byrro Mar 7, 2025
968c4e9
Merge branch 'renato/drive-search-files' of github.com:ArcadeAI/arcad…
byrro Mar 7, 2025
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
Prev Previous commit
Next Next commit
remove reference to ToolContext function not available in previous ve…
…rsions of arcade-ai
  • Loading branch information
byrro committed Feb 20, 2025
commit 4ceeb3295d6793ddd2f919efe4e7eb5b48421f4d
6 changes: 5 additions & 1 deletion toolkits/google/arcade_google/tools/contacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ async def create_contact(
service = build(
"people",
"v1",
credentials=Credentials(context.get_auth_token_or_empty()),
credentials=Credentials(
context.authorization.token
if context.authorization and context.authorization.token
else ""
),
)

# Construct the person payload with the specified names
Expand Down