AgentState constructor
- Input<
List< ? afterAgentCallbacks,AgentAfterAgentCallback> ?> - Input<
List< ? afterModelCallbacks,AgentAfterModelCallback> ?> - Input<
List< ? afterToolCallbacks,AgentAfterToolCallback> ?> - Input<
String?> ? agentId, - Input<
String?> ? app, - Input<
List< ? beforeAgentCallbacks,AgentBeforeAgentCallback> ?> - Input<
List< ? beforeModelCallbacks,AgentBeforeModelCallback> ?> - Input<
List< ? beforeToolCallbacks,AgentBeforeToolCallback> ?> - Input<
List< ? childAgents,String> ?> - Input<
String?> ? createTime, - Input<
String?> ? deletionPolicy, - Input<
String?> ? description, - Input<
String?> ? displayName, - Input<
String?> ? etag, - Input<
String?> ? generatedSummary, - Input<
List< ? guardrails,String> ?> - Input<
String?> ? instruction, - Input<
Map< ? llmAgent,String, dynamic> ?> - Input<
String?> ? location, - Input<
AgentModelSettings?> ? modelSettings, - Input<
String?> ? name, - Input<
String?> ? project, - Input<
AgentRemoteDialogflowAgent?> ? remoteDialogflowAgent, - Input<
List< ? tools,String> ?> - Input<
List< ? toolsets,AgentToolset> ?> - Input<
String?> ? updateTime,
Creates a new AgentState.
afterAgentCallbacks The callbacks to execute after the agent is called.
afterModelCallbacks The callbacks to execute after the model is called. If there are multiple
afterToolCallbacks The callbacks to execute after the tool is invoked. If there are multiple
agentId The ID to use for the agent, which will become the final component of
app Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
beforeAgentCallbacks The callbacks to execute before the agent is called.
beforeModelCallbacks The callbacks to execute before the model is called. If there are multiple
beforeToolCallbacks The callbacks to execute before the tool is invoked. If there are multiple
childAgents List of child agents in the agent tree.
createTime Timestamp when the agent was created.
deletionPolicy Whether Terraform will be prevented from destroying the resource. Defaults to DELETE.
description Human-readable description of the agent.
displayName Display name of the agent.
etag Etag used to ensure the object hasn't changed during a read-modify-write
generatedSummary If the agent is generated by the LLM assistant, this field contains a
guardrails List of guardrails for the agent.
instruction Instructions for the LLM model to guide the agent's behavior.
llmAgent Default agent type. The agent uses instructions and callbacks specified in
location Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
modelSettings Model settings contains various configurations for the LLM model.
name Identifier. The unique identifier of the agent.
project The ID of the project in which the resource belongs.
remoteDialogflowAgent The agent which will transfer execution to an existing remote
tools List of available tools for the agent.
toolsets List of toolsets for the agent.
updateTime Timestamp when the agent was last updated.
Implementation
const AgentState({
this.afterAgentCallbacks,
this.afterModelCallbacks,
this.afterToolCallbacks,
this.agentId,
this.app,
this.beforeAgentCallbacks,
this.beforeModelCallbacks,
this.beforeToolCallbacks,
this.childAgents,
this.createTime,
this.deletionPolicy,
this.description,
this.displayName,
this.etag,
this.generatedSummary,
this.guardrails,
this.instruction,
this.llmAgent,
this.location,
this.modelSettings,
this.name,
this.project,
this.remoteDialogflowAgent,
this.tools,
this.toolsets,
this.updateTime,
});