ExecutableCode class final
Code generated by the model that is meant to be executed, and the result returned to the model.
Only generated when using the CodeExecution tool, in which the code will
be automatically executed, and a corresponding CodeExecutionResult will
also be generated.
- Inheritance
-
- Object
- ProtoMessage
- ExecutableCode
Constructors
- ExecutableCode({required ExecutableCode_Language language, required String code})
- ExecutableCode.fromJson(Object? j)
-
factory
Properties
- code → String
-
Required. The code to be executed.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- language → ExecutableCode_Language
-
Required. Programming language of the
code.final - qualifiedName → String
-
The fully qualified name of this message, i.e.,
google.protobuf.Durationorgoogle.rpc.ErrorInfo.finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Object -
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- fullyQualifiedName → const String