UpdateAgentIn class

Constructors

UpdateAgentIn({String? computeRef, String? description, String? executionMode, String? instructions, String? model, String? ref, String? schedule, String? serviceAccountId, List<String> tools = const []})
Returns a new UpdateAgentIn instance.

Properties

computeRef ↔ String?
ComputeRef re-binds (or, with "", unbinds) the visor machine. Opaque here.
getter/setter pair
description ↔ String?
Description replaces the line other agents read in the tool catalogue.
getter/setter pair
executionMode ↔ String?
ExecutionMode switches between one-shot and long-running. The RESULTING mode+schedule are validated together, so switching to long-running without a stored or supplied cron is refused rather than accepted into an agent the scheduler would skip forever. A switch INTO long-running counts against the per-org cap and can be a 409.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
instructions ↔ String?
Instructions replaces the system prompt whole, up to 32 KiB. There is no append: a prompt is one text, and sending "" clears it.
getter/setter pair
model ↔ String?
Model re-points the agent at another model, checked against the gateway's served catalogue exactly as create checks it. Empty STRING is refused — say nothing to keep the current one. Past runs keep the model that served them.
getter/setter pair
ref ↔ String?
Ref is the agent to update — its public id or org-unique name, from the path.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
schedule ↔ String?
Schedule replaces the cron. It is validated against the mode this update leaves behind, and dropped if that mode is one-shot.
getter/setter pair
serviceAccountId ↔ String?
ServiceAccountID re-points (or, with "", clears) the IAM service account a scheduled run is billed as. Clearing it puts that spend back on the org.
getter/setter pair
tools ↔ List<String>
Tools replaces the whole allow-list, it does not add to it. Sending [] takes every tool away, which is the only way to say that.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → UpdateAgentIn?
Returns a new UpdateAgentIn instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<UpdateAgentIn>
mapFromJson(dynamic json) → Map<String, UpdateAgentIn>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<UpdateAgentIn>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.