Score behaviors with Span-01
Score behaviors with Span-01
Score behaviors with Span-01
Use Span-01 to check a conversation for behaviors you describe in plain language. The endpoint returns probabilities showing whether each behavior is present, absent, or cannot be judged from the conversation.
In the example, a customer complains that their order is late, and the assistant apologizes:
span.input contains the customer’s message.span.output contains the assistant’s reply.behaviors defines two checks: frustrated checks whether the user expresses frustration, and apology checks whether the assistant apologizes. Each result uses the same id as its check.In the captured response, p_present is 0.4459707 (about 45%) for frustrated and 0.9433637 (about 94%) for apology. For each check:
p_present is the probability that the behavior is present.p_absent is the probability that it is absent.p_not_observable is the probability that there is not enough evidence to judge.These three probabilities sum to approximately 1. The example response was captured from a live call using span-01-free.
Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer <RESPAN_API_KEY>. For /api/responses, provider credentials such as Perplexity, OpenAI, or Azure OpenAI go in Settings -> Providers or respan_params.credential_override in the request body, not in this authentication field.