NAME
Google::Cloud::Ces::V1::Fakes - Compiled Protocol Buffers messages for google/cloud/ces/v1/fakes.proto
SYNOPSIS
use Google::Cloud::Ces::V1::Fakes;
my $msg = Google::Cloud::Ces::V1::Fakes::CodeBlock->new({
python_code => $python_code,
});
# Read or update a field
my $val = $msg->python_code();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Ces::V1::Fakes::CodeBlock->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/ces/v1/fakes.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Ces::V1::Fakes::CodeBlock
A code block to be executed instead of a real tool call.
Inherits from Protobuf::Message.
Accessors
$msg->python_code()/$msg->python_code($value)Type:
StringRequired. Python code which will be invoked in tool fake mode. Expected Python function signature - To catch all tool calls: def fake_tool_call(tool: Tool, input: dict[str, Any], callback_context: CallbackContext) -> Optional[dict[str, Any]]: To catch a specific tool call: def fake_{tool_id}(tool: Tool, input: dict[str, Any], callback_context: CallbackContext) -> Optional[dict[str, Any]]: If the function returns None, the real tool will be invoked instead.
Google::Cloud::Ces::V1::Fakes::ToolFakeConfig
Configuration for tool behavior in fake mode.
Inherits from Protobuf::Message.
Accessors
$msg->code_block()/$msg->code_block($value)Type:
Message(Google::Cloud::Ces::V1::Fakes::CodeBlock)Optional. Code block which will be executed instead of a real tool call.
$msg->enable_fake_mode()/$msg->enable_fake_mode($value)Type:
BoolOptional. Whether the tool is using fake mode.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Ces::V1::Fakes::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.