codeforpdx / codeforpdx/tenantfirstaid

Move citation formatting into an agent tool

Open
#270 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

backend enhancement
Dominant language
Python
Stars
13
Forks
21
Avg merge
6d 7h
Merged PRs (30d)
3

Description

Give the chatbot access to a tool which correctly generates the citation string that is expected by the frontend. The tool should also verify that the generated URL is valid. Optionally, valid/invalid URLs could be cached (memoized) with a time-limit.

The DEFAULT_INSTRUCTIONS should replace citation formatting instructions with a simple instruction to use the tool when a citation is required.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating DEFAULT_INSTRUCTIONS, the existing agent-tool entry points, and the frontend's expected citation string. Trace how tool results reach the chatbot, then define completion as citation formatting being delegated to the tool and its generated URL being validated; URL caching is optional per the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ai, backend-api-design
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.