Package io.jenkins.plugins.aiagentjob
Class AiAgentRunAction
java.lang.Object
io.jenkins.plugins.aiagentjob.AiAgentRunAction
- All Implemented Interfaces:
Action,ModelObject,RunAction2
Per-build action that stores AI agent invocation metadata and provides the inline conversation
view on the build page. Supports multiple invocations in a single build.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSerialized metadata for one invocation in a run. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoIndex()voiddoProgressiveEvents(org.kohsuke.stapler.StaplerRequest2 request, org.kohsuke.stapler.StaplerResponse2 response) getEvents(int invocationId) getInvocationAgentType(int invocationId) booleangetInvocationApprovalsEnabled(int invocationId) getInvocationCommandLine(int invocationId) getInvocationCompletedAt(int invocationId) getInvocationExitCode(int invocationId) getInvocationModel(int invocationId) getInvocationPrompt(int invocationId) getInvocationStartedAt(int invocationId) booleangetInvocationYoloMode(int invocationId) intgetModel()static AiAgentRunActiongetOrCreate(Run<?, ?> run) getPendingApprovals(int invocationId) getRawContent(int invocationId) getRawLogFile(int invocationId) Run<?, ?> getRun()intgetUsageStats(int invocationId) booleanbooleanbooleanisInvocationLive(int invocationId) booleanisLatestInvocation(int invocationId) booleanisLive()booleanvoidmarkCompleted(int invocationId, int exitCode) intmarkStarted(String agentTypeDisplayName, String prompt, String model, String commandLine, boolean yoloMode, boolean approvalsEnabled) voidonAttached(Run<?, ?> run) void
-
Constructor Details
-
AiAgentRunAction
public AiAgentRunAction()
-
-
Method Details
-
getOrCreate
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-
onAttached
- Specified by:
onAttachedin interfaceRunAction2
-
onLoad
- Specified by:
onLoadin interfaceRunAction2
-
markStarted
public int markStarted(String agentTypeDisplayName, String prompt, String model, String commandLine, boolean yoloMode, boolean approvalsEnabled) throws IOException - Throws:
IOException
-
markCompleted
- Throws:
IOException
-
getInvocations
-
getInvocationsNewestFirst
-
hasInvocations
public boolean hasInvocations() -
getLatestInvocationId
public int getLatestInvocationId() -
getAgentType
-
getPrompt
-
getModel
-
getCommandLine
-
isYoloMode
public boolean isYoloMode() -
isApprovalsEnabled
public boolean isApprovalsEnabled() -
getStartedAt
-
getCompletedAt
-
getExitCode
-
isLive
public boolean isLive() -
getPendingApprovals
-
getPendingApprovals
-
getEvents
-
getEvents
-
getUsageStats
-
getUsageStats
-
getRawLogFile
-
getRawLogFile
-
isInvocationLive
public boolean isInvocationLive(int invocationId) -
getInvocationExitCode
-
isLatestInvocation
public boolean isLatestInvocation(int invocationId) -
getInvocationModel
-
getInvocationPrompt
-
getInvocationAgentType
-
getInvocationCommandLine
-
getInvocationStartedAt
-
getInvocationCompletedAt
-
getInvocationYoloMode
public boolean getInvocationYoloMode(int invocationId) -
getInvocationApprovalsEnabled
public boolean getInvocationApprovalsEnabled(int invocationId) -
getSelectedInvocationId
public int getSelectedInvocationId() -
doApprove
-
doDeny
-
doProgressiveEvents
@GET public void doProgressiveEvents(org.kohsuke.stapler.StaplerRequest2 request, org.kohsuke.stapler.StaplerResponse2 response) throws IOException - Throws:
IOException
-
doIndex
-
doConversation
-
getRawContent
-
getRawContent
-
getRun
-