- Resource: AlphaEvolveProgram
- AlphaEvolveProgramContent
- AlphaEvolveSourceFile
- AlphaEvolveProgramEvaluation
- AlphaEvolveEvaluationScores
- AlphaEvolveEvaluationScore
- AlphaEvolveEvaluationInsights
- AlphaEvolveEvaluationInsight
- ProgramState
- Methods
Resource: AlphaEvolveProgram
Represents a single program to be used within the context of an AlphaEvolve experiment.
| JSON representation |
|---|
{ "name": string, "createTime": string, "content": { object ( |
| Fields | |
|---|---|
name |
Identifier. Unique identifier for the program. Format: |
createTime |
Output only. time when the program was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
content |
Optional. Content of the program. |
evaluation |
Optional. Evaluation results for the program. |
parentPrograms[] |
Output only. Optionally specifies which parent programs this program was evolved from. Format: |
lockToken |
Optional. Lock token for the program. |
state |
Output only. state of the program. |
AlphaEvolveProgramContent
A self-contained message containing the content of a program. Can represent a collection of files.
| JSON representation |
|---|
{
"description": string,
"files": [
{
object ( |
| Fields | |
|---|---|
description |
Optional. description of the program. |
files[] |
Required. A list of source files that make up the overall program. |
AlphaEvolveSourceFile
A single source file with its path, content and metadata.
| JSON representation |
|---|
{ "path": string, "content": string, "programLanguage": string, "description": string } |
| Fields | |
|---|---|
path |
Required. The relative path of the file, including the filename. e.g., "src/main.py", "utils/helpers.js", "README.md" |
content |
Required. The raw content of the file. This is a string and not bytes, because it should be ultimately processed by the LLM as text. |
programLanguage |
Optional. The programming language of the file. |
description |
Optional. Additional description of the file. |
AlphaEvolveProgramEvaluation
Evaluation results for a program candidate.
| JSON representation |
|---|
{ "scores": { object ( |
| Fields | |
|---|---|
scores |
Optional. Contains the evaluation scores for the target metrics to optimize. |
insights |
Optional. Represents various insights about the candidate, which are not directly used as optimization target, but that can be used to improve subsequent generations, and as such can be used to construct the evolution prompt. |
AlphaEvolveEvaluationScores
Contains the evaluation scores for the target metrics to optimize.
| JSON representation |
|---|
{
"scores": [
{
object ( |
| Fields | |
|---|---|
scores[] |
Required. List of evaluation scores. |
AlphaEvolveEvaluationScore
Score for a single metric.
| JSON representation |
|---|
{ "metric": string, "score": number } |
| Fields | |
|---|---|
metric |
Required. name of the metric. |
score |
Required. Score of a program for this metric. |
AlphaEvolveEvaluationInsights
Evaluation insights for a program.
| JSON representation |
|---|
{
"insights": [
{
object ( |
| Fields | |
|---|---|
insights[] |
Optional. List of evaluation insights. |
AlphaEvolveEvaluationInsight
A single evaluation insight.
| JSON representation |
|---|
{ "label": string, "text": string } |
| Fields | |
|---|---|
label |
Optional. label of the insight. |
text |
Optional. Text of the insight. |
ProgramState
state of a program in an experiment.
| Enums | |
|---|---|
PROGRAM_STATE_UNSPECIFIED |
Default value. This value is unused. |
INITIALIZED |
The program is initialized. |
GENERATING |
The program is in generation. |
EVALUATING |
The program is pending evaluation. |
COMPLETED |
The program is completed. |
Methods |
|
|---|---|
|
Creates a new AlphaEvolveProgram. |
|
Gets an existing AlphaEvolveProgram. |
|
List all AlphaEvolvePrograms in a given experiment that follow the criteria provided in the request. |