Removed unused param (#207)

# PR Description
For the `Google.GetThread` tool, we had a parameter named
`metadata_headers`. This parameter only makes a difference if the format
is "metadata", but the tool will never have the format "metadata". So,
the input parameter is useless. This parameter should have never been
added to the tool and we should remove it before public beta.
This commit is contained in:
Eric Gustin 2025-01-16 09:41:26 -08:00 committed by GitHub
parent e314ac5ed5
commit 48c9870eac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -497,16 +497,12 @@ async def list_threads(
async def get_thread(
context: ToolContext,
thread_id: Annotated[str, "The ID of the thread to retrieve"],
metadata_headers: Annotated[
Optional[list[str]], "When given and format is METADATA, only include headers specified."
] = None,
) -> Annotated[dict, "A dictionary containing the thread details"]:
"""Get the specified thread by ID."""
params = {
"userId": "me",
"id": thread_id,
"format": "full",
"metadataHeaders": metadata_headers,
}
params = remove_none_values(params)