Skip to content

discussion

The discussion parent type covers community-generated content including forums, Q&A platforms, comment threads, review threads, and polls. This type captures the conversational structure and resolution state that agents need for question-answering tasks.

SubtypeQualified TypeDescription
forumdiscussion.forumForum thread or discussion
qadiscussion.qaQuestion-and-answer format (e.g., Stack Overflow)
comment_threaddiscussion.comment_threadComment thread on an article or post
review_threaddiscussion.review_threadUser review collection
polldiscussion.pollPoll or survey with results
FieldTypeRequiredDescription
question_titlestringYesTitle of the question or discussion topic
answer_countintegerNoNumber of answers or replies
accepted_answerstringNoText of the accepted or best answer
votesintegerNoVote count (upvotes minus downvotes)
tagsarray<string>NoTopic tags applied to the discussion
is_resolvedbooleanNoWhether the question or issue is resolved
discussion type_data
{
"type_data": {
"question_title": "How to handle concurrent database migrations in a distributed system?",
"answer_count": 7,
"accepted_answer": "Use advisory locks at the migration runner level. Each instance attempts to acquire a PostgreSQL advisory lock before running migrations. Only the instance that holds the lock proceeds; others wait or skip. This ensures exactly-once execution without requiring external coordination.",
"votes": 142,
"tags": ["postgresql", "distributed-systems", "database-migrations", "concurrency"],
"is_resolved": true
}
}
  • question_title is the thread title or question, not a summary. Use summary.one_line for a generated summary.
  • accepted_answer contains the text of the accepted answer, not the full answer object. The full answer structure is in sections.
  • votes is a net score (upvotes minus downvotes). Negative values are valid.
  • is_resolved indicates whether the original question has been answered to the asker’s satisfaction. For forums without explicit resolution, this field may be omitted.
  • tags are the platform-native tags, not SDF-generated topics. Use topics for SDF-classified topics.
  • For Q&A content that also serves as documentation (e.g., canonical Stack Overflow answers), use aspects: ["documentation.faq"].