> For the complete documentation index, see [llms.txt](https://doc.ozforensics.com/oz-knowledge/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.ozforensics.com/oz-knowledge/oz-knowledge/pt-br/guias/developer-guide/sdk/oz-liveness-websdk/web-plugin/launching-the-plugin/description-of-the-on_result-callback.md).

# Descrição do callback on\_result

Este callback é chamado periodicamente durante o processamento da análise. Ele recupera um resultado intermediário (indisponível para o `captura` modo). O conteúdo do resultado depende do Web Adapter `result_mode` [parâmetro de configuração](/oz-knowledge/oz-knowledge/pt-br/guias/administrator-guide/configuracao/web-adapter/configuration-file-settings.md).

{% hint style="info" %}
Lembre-se de que é mais seguro deixar o seu back end responsável pela lógica de decisão. É possível encontrar mais detalhes, incluindo exemplos de código [aqui](/oz-knowledge/oz-knowledge/pt-br/guias/developer-guide/sdk/oz-liveness-websdk/web-plugin/security-recommendations.md).
{% endhint %}

### Safe

Quando `result_mode` for `safe`, o `on_result` o callback contém apenas o estado da análise:

```json
{
 "state": "finished"
}
```

{% hint style="danger" %}
Observação: as opções listadas abaixo são apenas para fins de teste. Se forem necessárias mais informações do que as disponíveis no modo Safe, siga [Recomendações de segurança](/oz-knowledge/oz-knowledge/pt-br/guias/developer-guide/sdk/oz-liveness-websdk/web-plugin/security-recommendations.md).
{% endhint %}

### Status

Para o `status` valor, o callback contém o estado da análise e, para cada um dos tipos de análise, o nome do tipo, o estado e a resolução.

```json
{
 "state": "finished",
 "analyses": {
   "quality": {
     "state": "finished",
     "resolution": "SUCCESS"
   }
 }
}
```

### Pasta

O `folder` valor é quase semelhante ao `status` valor, com a única diferença: o `folder_id` é adicionado.

```json
{
 "state": "finished",
 "folder_id": "your_folder_id",
 "analyses": {
   "quality": {
     "state": "finished",
     "resolution": "SUCCESS"
   }
 }
}
```

### Completo

Neste caso, você recebe a resposta detalhada, possivelmente contendo dados sensíveis. Este modo está obsoleto; por motivos de segurança, recomendamos usar o `safe` modo.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://doc.ozforensics.com/oz-knowledge/oz-knowledge/pt-br/guias/developer-guide/sdk/oz-liveness-websdk/web-plugin/launching-the-plugin/description-of-the-on_result-callback.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
