Skip to content

Commit

Permalink
fix(agents): Fetching existing agents with additional post type filter
Browse files Browse the repository at this point in the history
  • Loading branch information
RezaRahemtola committed Oct 24, 2024
1 parent c14efdf commit 22d54f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/src/utils/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ async def fetch_agents(ids: list[str] | None = None) -> list[FetchedAgent]:
async with AlephHttpClient(api_server=config.ALEPH_API_URL) as client:
result = await client.get_posts(
post_filter=PostFilter(
types=[config.ALEPH_AGENT_POST_TYPE],
addresses=[config.ALEPH_SENDER],
tags=ids,
channels=[config.ALEPH_CHANNEL],
Expand Down

0 comments on commit 22d54f4

Please sign in to comment.