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

fix: bluesky time-bound query issues #229

Merged
merged 1 commit into from
Nov 25, 2024
Merged

Conversation

njhale
Copy link
Contributor

@njhale njhale commented Nov 22, 2024

The Bluesky bundle's Search Post tool fails to search for posts when the since or until parameters are set due an error returned by the public bsky search APIs. This isn't well documented, but after some testing it was determined that this only occurs when making
unauthenticated requests.

To fix this issue, this change updates the Bluesky tools to make authenticated requests with a user handle and App Password provided by the user via a basic auth credential tool.

This change also exposes a tags parameter on the Search Post tool to make it easier for agents to search by tag.

Note: This PR depends on #228

@njhale
Copy link
Contributor Author

njhale commented Nov 25, 2024

Will rebase on main after #228 merges. (done)

@njhale njhale marked this pull request as ready for review November 25, 2024 15:20
basic-auth/main.go Outdated Show resolved Hide resolved
The `Bluesky` bundle's `Search Post` tool fails to search for posts when
the `since` or `until` parameters are set due an error returned by the
public bsky search APIs. This isn't well documented, but after some
testing it was determined that this only occurs when making
unauthenticated requests.

To fix this issue, this change updates the Bluesky tools to make
authenticated requests with a user handle and [App Password](https://bsky.app/settings/app-passwords)
provided by the user via a basic auth credential tool.

This change also exposes a `tags` parameter on the `Search Post` tool to
make it easier for agents to search by tag.

Signed-off-by: Nick Hale <[email protected]>
@njhale njhale merged commit fc46caa into otto8-ai:main Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants