WeKnora/internal/agent/operations
lyingbug a730a411d4
feat(agent): let the assistant manage FAQ entries (#4327)
* feat(agent): let the assistant manage FAQ entries

New operations: faq.list_entries, faq.get_entry, faq.create_entry,
faq.update_entry, faq.add_similar_questions and faq.delete_entries
(up to 20, each question named on the approval).

The catalog learns what FAQ needs:
- integer path parameters (entry_id) and integer lists (entry_ids);
  approval items resolve integer IDs too;
- x-agent-required, which makes the model send a field the API treats
  as optional. The FAQ update replaces the whole entry, so a left-out
  answer list, tag or answer strategy would be cleared;
- a body on DELETE, which the FAQ batch delete uses.

The FAQ list documents its page of FAQEntry instead of an untyped page,
and the delete body is a named type. FAQ tags are referenced by seq id,
so knowledge_base.list_tags also returns tag_seq_id.

* fix(agent): resolve FAQ operation lint failures

* fix(agent): preserve complete FAQ content during updates
2026-10-15 16:14:21 +08:00
..
builtin.go feat(agent): add the built-in WeKnora assistant with an operation catalog (#4302) 2026-10-15 12:18:30 +08:00
catalog.go feat(agent): let the assistant manage FAQ entries (#4327) 2026-10-15 16:14:21 +08:00
catalog_test.go feat(agent): let the assistant manage FAQ entries (#4327) 2026-10-15 16:14:21 +08:00
dispatch.go feat(agent): add the built-in WeKnora assistant with an operation catalog (#4302) 2026-10-15 12:18:30 +08:00
faq_test.go feat(agent): let the assistant manage FAQ entries (#4327) 2026-10-15 16:14:21 +08:00
projection.go feat(agent): let the assistant manage FAQ entries (#4327) 2026-10-15 16:14:21 +08:00
request.go feat(agent): let the assistant manage FAQ entries (#4327) 2026-10-15 16:14:21 +08:00
spec.go feat(agent): let the assistant manage FAQ entries (#4327) 2026-10-15 16:14:21 +08:00
spec_test.go feat(agent): let the assistant manage FAQ entries (#4327) 2026-10-15 16:14:21 +08:00