Firebase.AI.ModelContent.CodeExecutionResultPart

A part containing the result of executing code.

Summary

Inheritance

Inherits from: Firebase.AI.ModelContent.Part

Public types

ExecutionOutcome{
  Ok,
  Failed,
  DeadlineExceeded
}
enum
The outcome of a code execution.

Properties

IsThought
bool
Outcome
The outcome of the code execution.
Output
string
The output of the code execution.

Public functions

ToJson()
Dictionary< string, object > Part.

Public types

ExecutionOutcome

 Firebase::AI::ModelContent::CodeExecutionResultPart::ExecutionOutcome

The outcome of a code execution.

Properties
DeadlineExceeded

The code took too long to execute.

Failed

The code failed to execute.

Ok

The code executed without errors.

Properties

IsThought

bool Firebase::AI::ModelContent::CodeExecutionResultPart::IsThought

Outcome

ExecutionOutcome Firebase::AI::ModelContent::CodeExecutionResultPart::Outcome

The outcome of the code execution.

Output

string Firebase::AI::ModelContent::CodeExecutionResultPart::Output

The output of the code execution.

Public functions

ToJson

Dictionary< string, object > Part. Firebase::AI::ModelContent::CodeExecutionResultPart::ToJson()