Fency.ai
Sessions

Examples

Optional query and approach pairs that steer Explore Memories.

examples is an optional list of query and approach pairs that show the agent how to handle typical questions. Your server sets them when creating a createAgentTask session. The React SDK only receives a clientToken and cannot change them.

How examples apply per task type:

Task typeexamples
EXPLORE_MEMORIESOptional. A list of query and approach pairs.
EXPLORE_PRODUCTNot supported
MEMORY_CHATNot supported
MEMORY_SEARCHNot supported
STREAMING_CHAT_COMPLETIONNot supported
STRUCTURED_CHAT_COMPLETIONNot supported

How they work

Each item needs:

  • query: an example user question
  • approach: how the agent should handle that question

Leave examples off when you do not want to steer the agent with sample questions. Sending examples on any other task type is rejected.

Examples

EXPLORE_MEMORIES

{
    createAgentTask: {
        taskType: 'EXPLORE_MEMORIES',
        examples: [
            {
                query: 'Which parents lack a matching child?',
                approach: 'Use keywordSearch parentForEach and filter empty search_matching_memory_ids.',
            },
        ],
    },
}

See Sessions for full request bodies per task type.

On this page