MockedToolCall(mapping=None, *, ignore_unknown_fields=False, **kwargs)A mocked tool call.
Expresses the target tool + a pattern to match against that tool's args / inputs. If the pattern matches, then the mock response will be returned.
This message has oneof_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes |
|
|---|---|
| Name | Description |
tool_id |
str
Optional. The name of the tool to mock. Format: projects/{project}/locations/{location}/apps/{app}/tools/{tool}
This field is a member of oneof_ tool_identifier.
|
toolset |
google.cloud.ces_v1beta.types.ToolsetTool
Optional. The toolset to mock. This field is a member of oneof_ tool_identifier.
|
tool |
str
Optional. Deprecated. Use tool_identifier instead. |
expected_args_pattern |
google.protobuf.struct_pb2.Struct
Required. A pattern to match against the args / inputs of all dispatched tool calls. If the tool call inputs match this pattern, then mock output will be returned. |
mock_response |
google.protobuf.struct_pb2.Struct
Optional. The mock response / output to return if the tool call args / inputs match the pattern. |