Explorer

definy.sync-summary-result

description
The tool result of definy_receive / definy_send (an error when some events failed)
type
Fn(text: String, summary: Record{count: Number, errors: List<String>}) -> @definy.service-io
expression
fn(text$0, summary$1) =>
  match @core.equal(left: @core.list-length(value: $1.errors), right: 0) {
    true =>
      @definy.mcp-text(text: $0),
    false =>
      @definy.mcp-text-error(text: $0)
  }
visibility
public
definy.sync-summary-result (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo)
id: ZVFnp4NBfP_f5fo5qOusFZOZIguBjg8ScSQk3phwFHE
content hash: HKjBJy_vB4RJU_J134nebRMawoRyAYdpq7BVAYqv7Z8