Skip to main content

Overview

The AskFredResponse type is a wrapper object returned by AskFred mutations when creating or continuing conversation threads. It contains the newly generated message with the AI’s response to your query.

Fields

message
AskFredMessage!
required
The generated message containing the query, answer, and metadata. See AskFredMessage for detailed field descriptions.

Example

{
  "message": {
    "id": "msg_001",
    "thread_id": "thread_abc123",
    "query": "What were the key decisions made in today's meeting?",
    "answer": "Based on today's meeting, here are the key decisions made:\n\n1. **Product Launch Date**: Confirmed for April 15th, 2024\n2. **Budget Allocation**: Approved $250K for Q2 marketing initiatives\n3. **Team Structure**: Decided to hire 3 additional engineers\n4. **Partnership Strategy**: Approved collaboration with TechCorp",
    "suggested_queries": [
      "What are the specific marketing initiatives planned?",
      "What roles are we hiring for engineering?",
      "What are the terms of the TechCorp partnership?"
    ],
    "status": "completed",
    "created_at": "2024-03-15T14:30:00Z",
    "updated_at": "2024-03-15T14:30:05Z"
  }
}