AgentState constructor

const AgentState({
  1. Input<List<AgentAfterAgentCallback>?>? afterAgentCallbacks,
  2. Input<List<AgentAfterModelCallback>?>? afterModelCallbacks,
  3. Input<List<AgentAfterToolCallback>?>? afterToolCallbacks,
  4. Input<String?>? agentId,
  5. Input<String?>? app,
  6. Input<List<AgentBeforeAgentCallback>?>? beforeAgentCallbacks,
  7. Input<List<AgentBeforeModelCallback>?>? beforeModelCallbacks,
  8. Input<List<AgentBeforeToolCallback>?>? beforeToolCallbacks,
  9. Input<List<String>?>? childAgents,
  10. Input<String?>? createTime,
  11. Input<String?>? deletionPolicy,
  12. Input<String?>? description,
  13. Input<String?>? displayName,
  14. Input<String?>? etag,
  15. Input<String?>? generatedSummary,
  16. Input<List<String>?>? guardrails,
  17. Input<String?>? instruction,
  18. Input<Map<String, dynamic>?>? llmAgent,
  19. Input<String?>? location,
  20. Input<AgentModelSettings?>? modelSettings,
  21. Input<String?>? name,
  22. Input<String?>? project,
  23. Input<AgentRemoteDialogflowAgent?>? remoteDialogflowAgent,
  24. Input<List<String>?>? tools,
  25. Input<List<AgentToolset>?>? toolsets,
  26. 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,
});