KapsoEx.Platform.Findings (kapso_ex v0.1.0)

Copy Markdown View Source

Findings: recurring problems Kapso detects in your conversations, with AI investigations.

Summary

Functions

Dismisses a finding. reason is one of "not_relevant", "expected_behavior", "already_fixed", "incorrect" or "other".

Gets the evidence behind a finding: history, source events and affected conversations.

Gets a finding with its metrics, related findings, verification and investigation.

Lists findings, most recently qualified first. Params: limit, before, after.

Marks a finding as addressed and starts monitoring it. Requires a completed investigation that covers the current evidence.

Queues an AI investigation. Poll get/2 for the result.

Types

result()

@type result() :: {:ok, map()} | {:error, KapsoEx.Error.t()}

Functions

dismiss(client, finding_id, reason, note)

@spec dismiss(KapsoEx.Client.t(), String.t(), String.t(), String.t()) :: result()

Dismisses a finding. reason is one of "not_relevant", "expected_behavior", "already_fixed", "incorrect" or "other".

evidence(client, finding_id)

@spec evidence(KapsoEx.Client.t(), String.t()) :: result()

Gets the evidence behind a finding: history, source events and affected conversations.

get(client, finding_id)

@spec get(KapsoEx.Client.t(), String.t()) :: result()

Gets a finding with its metrics, related findings, verification and investigation.

list(client, params \\ [])

@spec list(KapsoEx.Client.t(), map() | keyword()) :: result()

Lists findings, most recently qualified first. Params: limit, before, after.

mark_addressed(client, finding_id)

@spec mark_addressed(KapsoEx.Client.t(), String.t()) :: result()

Marks a finding as addressed and starts monitoring it. Requires a completed investigation that covers the current evidence.

start_investigation(client, finding_id)

@spec start_investigation(KapsoEx.Client.t(), String.t()) :: result()

Queues an AI investigation. Poll get/2 for the result.