Emend
Schemas

Search Models

Data structures for unified search across all entity types.

ConversationTurnmodel

A single turn in a conversation history, used to give the server enough context to reformulate a search query.

PropType
rolestring
contentstring
UnifiedSearchRequestrequest model

Request model for searching across all entity types in a single call.

PropType
querystring
top_kinteger
thresholdfloat
agent_versionstring
playbook_namestring
user_idstring
sourcestring
request_idstring
tagsarray[string]
entity_typesarray[string]
agent_playbook_status_filterarray[PlaybookStatus]
conversation_historyarray[ConversationTurn]
enable_reformulationboolean
enable_agent_answerboolean
search_modeSearchMode
session_idstring
interaction_idinteger
UnifiedSearchResponseresponse model

Response model for unified search across all entity types.

Info
Retrieved results are reranked by a cross-encoder and dropped below a per-arm relevance floor (see retrieval_floor in the configuration models). Unified search also omits source user playbooks already represented by returned agent playbooks. As a result, each result array may contain fewer than top_k items — including an empty array — when nothing clears the floor or user playbooks are suppressed. An empty array means nothing was relevant, not that the search failed.

When a retrieval experiment is active, the response includes experiment. Holdout searches also return success=true, but all learning result arrays are empty and retrieval is skipped. Dashboard inspection bypasses experiment assignment.

PropType
successboolean
profilesarray[UserProfile]
agent_playbooksarray[AgentPlaybook]
user_playbooksarray[UserPlaybook]
reformulated_querystring
degradedboolean
search_mode_effectivestring
agent_answerstring
agent_tracestring
rehydrated_textstring
experimentRetrievalExperimentAssignment
msgstring
RetrievalExperimentAssignmentmodel

Attribution returned by unified, profile, user-playbook, and agent-playbook learning searches while an experiment applies.

PropType
experiment_idstring
arm"treatment" | "holdout"