Interface CallbackOrBuilder (0.1.0)

public interface CallbackOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCallbackCase()

public abstract Callback.CallbackCase getCallbackCase()
Returns
Type Description
Callback.CallbackCase

getDescription()

public abstract String getDescription()

Optional. Human-readable description of the callback.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public abstract ByteString getDescriptionBytes()

Optional. Human-readable description of the callback.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDisabled()

public abstract boolean getDisabled()

Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.

bool disabled = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The disabled.

getProactiveExecutionEnabled()

public abstract boolean getProactiveExecutionEnabled()

Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. ENABLE WITH CAUTION. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.

bool proactive_execution_enabled = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The proactiveExecutionEnabled.

getPythonCode()

public abstract String getPythonCode()

Required. The python code to execute for the callback.

string python_code = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The pythonCode.

getPythonCodeBytes()

public abstract ByteString getPythonCodeBytes()

Required. The python code to execute for the callback.

string python_code = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for pythonCode.

hasPythonCode()

public abstract boolean hasPythonCode()

Required. The python code to execute for the callback.

string python_code = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the pythonCode field is set.