Local Testing

Detailed information on the echo conversation component used for local testing

Component format

A Dapr conversation.yaml component file has the following structure:

apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
  name: echo
spec:
  type: conversation.echo
  version: v1

Spec metadata fields

FieldRequiredDetailsExample
maxTokensNDefault maximum number of tokens (whitespace-delimited words) echoed back per request. A request-level maxTokens value overrides this default. When the cap truncates the output, the choice’s finishReason is length. When unset, the input is echoed back in full without truncation.2048
Last modified October 1, 2026: Upmerge (#5347) (7e2fbe42e)