ProvideVerifiedSubgraphResult

Represents a concrete implementation of ProvideSubgraphResult specialized to handle verified subgraph results.

ProvideVerifiedSubgraphResult invokes and validates the execution of a task represented by a subgraph, and returns a VerifiedSubgraphResult object containing the results of the verification. It provides metadata and parameter definitions required for using the tool.

This object is designed to ensure a subgraph task has been executed correctly and to capture any potential issues with the execution. The verification result attributes include:

  • Whether the execution was successful (correct)

  • A descriptive message explaining the result or issues (message)

The tool metadata is encapsulated through a ToolDescriptor, defining the tool name, purpose, and required parameters ("correct" and "message").

It serializes and deserializes VerifiedSubgraphResult instances for input and output using the appropriate KSerializer.

Functions:

  • execute: Processes and returns the received VerifiedSubgraphResult object as the output without modification.

Properties:

  • argsSerializer: The serializer used to process the VerifiedSubgraphResult.

  • descriptor: The metadata describing this tool, including its name, functionality, and parameters.

Properties

Link copied to clipboard
Link copied to clipboard
open override val descriptor: ToolDescriptor
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard