API ReferenceClient Methods
Unified Search
Search across all entity types in a single call.
Unified Search
search
Search across all entity types (profiles, agent_playbooks, user_playbooks) in a single call. The server runs query reformulation and searches all entity types in parallel.
response = client.search(
query="user preferences",
top_k=5,
threshold=0.3
)Prop
Type
Example:
# Basic unified search
response = client.search(query="response quality issues")
print(f"Profiles: {len(response.profiles)}")
print(f"Agent Playbooks: {len(response.agent_playbooks)}")
print(f"User Playbooks: {len(response.user_playbooks)}")
if response.reformulated_query:
print(f"Reformulated query: {response.reformulated_query}")
for profile in response.profiles:
print(f" Profile: {profile.content[:80]}...")
for playbook in response.agent_playbooks:
print(f" Playbook: {playbook.content[:80]}...")
# Search with filters
response = client.search(
query="handling edge cases",
agent_version="v2.1.0",
playbook_name="quality_playbook",
top_k=10,
threshold=0.4
)
# Search filtered by user
response = client.search(
query="product preferences",
user_id="user_123",
top_k=5
)