AgentEvent.FunctionResponse

public final class AgentEvent.FunctionResponse implements AgentEvent


Emitted immediately after a function invocation completes.

Summary

Public constructors

FunctionResponse(
    @NonNull String name,
    @NonNull Map<@NonNull String, Object> response
)

Public methods

final @NonNull String

The name of the function that was called.

final @NonNull Map<@NonNull String, Object>

The response map returned by the function or error details.

Public constructors

FunctionResponse

public FunctionResponse(
    @NonNull String name,
    @NonNull Map<@NonNull String, Object> response
)

Public methods

getName

public final @NonNull String getName()

The name of the function that was called.

getResponse

public final @NonNull Map<@NonNull String, Object> getResponse()

The response map returned by the function or error details.