public sealed class MockedToolCall : IMessage<MockedToolCall>, IEquatable<MockedToolCall>, IDeepCloneable<MockedToolCall>, IBufferMessage, IMessageReference documentation and code samples for the Gemini Enterprise for Customer Experience v1beta API class MockedToolCall.
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.
Implements
IMessageMockedToolCall, IEquatableMockedToolCall, IDeepCloneableMockedToolCall, IBufferMessage, IMessageNamespace
Google.Cloud.Ces.V1BetaAssembly
Google.Cloud.Ces.V1Beta.dll
Constructors
MockedToolCall()
public MockedToolCall()MockedToolCall(MockedToolCall)
public MockedToolCall(MockedToolCall other)| Parameter | |
|---|---|
| Name | Description |
other |
MockedToolCall |
Properties
ExpectedArgsPattern
public Struct ExpectedArgsPattern { get; set; }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.
| Property Value | |
|---|---|
| Type | Description |
Struct |
|
HasToolId
public bool HasToolId { get; }Gets whether the "tool_id" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
MockResponse
public Struct MockResponse { get; set; }Optional. The mock response / output to return if the tool call args / inputs match the pattern.
| Property Value | |
|---|---|
| Type | Description |
Struct |
|
Tool
[Obsolete]
public string Tool { get; set; }Optional. Deprecated. Use tool_identifier instead.
| Property Value | |
|---|---|
| Type | Description |
string |
|
ToolAsToolName
[Obsolete]
public ToolName ToolAsToolName { get; set; }| Property Value | |
|---|---|
| Type | Description |
ToolName |
|
ToolId
public string ToolId { get; set; }Optional. The name of the tool to mock.
Format: projects/{project}/locations/{location}/apps/{app}/tools/{tool}
| Property Value | |
|---|---|
| Type | Description |
string |
|
ToolIdAsToolName
public ToolName ToolIdAsToolName { get; set; }| Property Value | |
|---|---|
| Type | Description |
ToolName |
|
ToolIdentifierCase
public MockedToolCall.ToolIdentifierOneofCase ToolIdentifierCase { get; }| Property Value | |
|---|---|
| Type | Description |
MockedToolCallToolIdentifierOneofCase |
|
Toolset
public ToolsetTool Toolset { get; set; }Optional. The toolset to mock.
| Property Value | |
|---|---|
| Type | Description |
ToolsetTool |
|