- Resource: Activity
- AgentMessaged
- UserMessaged
- PlanGenerated
- Plan
- PlanStep
- PlanApproved
- ProgressUpdated
- SessionCompleted
- SessionFailed
- Artifact
- ChangeSet
- GitPatch
- Media
- BashOutput
- Methods
Resource: Activity
An activity is a single unit of work within a session.
JSON representation |
---|
{ "name": string, "id": string, "description": string, "createTime": string, "originator": string, "artifacts": [ { object ( |
Fields | |
---|---|
name |
Identifier. The full resource name (e.g., "sessions/{session}/activities/{activity}"). |
id |
Output only. The id of the activity. This is the same as the "{activity}" part of the resource name (e.g., "sessions/{session}/activities/{activity}"). |
description |
Output only. A description of this activity. |
createTime |
Output only. The time at which this activity 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: |
originator |
The entity that this activity originated from (e.g. "user", "agent", "system"). |
artifacts[] |
Output only. The artifacts produced by this activity. |
Union field activity . The activity content. activity can be only one of the following: |
|
agentMessaged |
The agent posted a message. |
userMessaged |
The user posted a message. |
planGenerated |
A plan was generated. |
planApproved |
A plan was approved. |
progressUpdated |
There was a progress update. |
sessionCompleted |
The session was completed. |
sessionFailed |
The session failed. |
AgentMessaged
The agent posted a message.
JSON representation |
---|
{ "agentMessage": string } |
Fields | |
---|---|
agentMessage |
The message the agent posted. |
UserMessaged
The user posted a message.
JSON representation |
---|
{ "userMessage": string } |
Fields | |
---|---|
userMessage |
The message the user posted. |
PlanGenerated
A plan was generated.
JSON representation |
---|
{
"plan": {
object ( |
Fields | |
---|---|
plan |
The plan that was generated. |
Plan
A plan is a sequence of steps that the agent will take to complete the task.
JSON representation |
---|
{
"id": string,
"steps": [
{
object ( |
Fields | |
---|---|
id |
Output only. ID for this plan; unique within a session. |
steps[] |
Output only. The steps in the plan. |
createTime |
Output only. Time when the plan 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: |
PlanStep
A step in a plan.
JSON representation |
---|
{ "id": string, "title": string, "description": string, "index": integer } |
Fields | |
---|---|
id |
Output only. ID for this step; unique within a plan. |
title |
Output only. The title of the step. |
description |
Output only. The description of the step. |
index |
Output only. 0-based index into the plan.steps. |
PlanApproved
A plan was approved.
JSON representation |
---|
{ "planId": string } |
Fields | |
---|---|
planId |
The ID of the plan that was approved. |
ProgressUpdated
There was a progress update.
JSON representation |
---|
{ "title": string, "description": string } |
Fields | |
---|---|
title |
The title of the progress update. |
description |
The description of the progress update. |
SessionCompleted
This type has no fields.
The session was completed.
SessionFailed
The session failed.
JSON representation |
---|
{ "reason": string } |
Fields | |
---|---|
reason |
The reason the session failed. |
Artifact
An artifact is a single unit of data produced by an activity step.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field content . The artifact content. content can be only one of the following: |
|
changeSet |
A change set was produced (e.g. code changes). |
media |
A media file was produced (e.g. image, video). |
bashOutput |
A bash output was produced. |
ChangeSet
A set of changes to be applied to a source.
JSON representation |
---|
{ "source": string, // Union field |
Fields | |
---|---|
source |
The name of the source this change set applies to. Format: sources/{source} |
Union field changes . The changes to be applied to the source. changes can be only one of the following: |
|
gitPatch |
A patch in Git format. |
GitPatch
A patch in Git format.
JSON representation |
---|
{ "unidiffPatch": string, "baseCommitId": string, "suggestedCommitMessage": string } |
Fields | |
---|---|
unidiffPatch |
The patch in unidiff format. |
baseCommitId |
The base commit id of the patch. This is the id of the commit that the patch should be applied to. |
suggestedCommitMessage |
A suggested commit message for the patch, if one is generated. |
Media
A media output.
JSON representation |
---|
{ "data": string, "mimeType": string } |
Fields | |
---|---|
data |
The media data. A base64-encoded string. |
mimeType |
The media mime type. |
BashOutput
A bash output.
JSON representation |
---|
{ "command": string, "output": string, "exitCode": integer } |
Fields | |
---|---|
command |
The bash command. |
output |
The bash output. Includes both stdout and stderr. |
exitCode |
The bash exit code. |
Methods |
|
---|---|
|
Gets a single activity. |
|
Lists activities for a session. |