Class GeminiCliAgentHandler
java.lang.Object
hudson.model.AbstractDescribableImpl<AiAgentTypeHandler>
io.jenkins.plugins.aiagentjob.AiAgentTypeHandler
io.jenkins.plugins.aiagentjob.geminicli.GeminiCliAgentHandler
- All Implemented Interfaces:
ExtensionPoint,Describable<AiAgentTypeHandler>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildDefaultCommand(AiAgentConfiguration config, String prompt) getId()Stable identifier for this agent implementation.Returns the log format parser for this agent's JSONL output.Returns the stats extractor for this agent's JSONL output.Methods inherited from class io.jenkins.plugins.aiagentjob.AiAgentTypeHandler
prepareExecutionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Describable
getDescriptor
-
Constructor Details
-
GeminiCliAgentHandler
@DataBoundConstructor public GeminiCliAgentHandler()
-
-
Method Details
-
getId
Description copied from class:AiAgentTypeHandlerStable identifier for this agent implementation.- Specified by:
getIdin classAiAgentTypeHandler
-
getDefaultApiKeyEnvVar
- Specified by:
getDefaultApiKeyEnvVarin classAiAgentTypeHandler
-
buildDefaultCommand
- Specified by:
buildDefaultCommandin classAiAgentTypeHandler
-
getLogFormat
Description copied from class:AiAgentTypeHandlerReturns the log format parser for this agent's JSONL output.The returned format's
AiAgentLogFormat.classify(long, net.sf.json.JSONObject)method should returnnullfor any JSON it does not recognise, so the parser can fall through to the shared format and generic fallback.- Specified by:
getLogFormatin classAiAgentTypeHandler
-
getStatsExtractor
Description copied from class:AiAgentTypeHandlerReturns the stats extractor for this agent's JSONL output.The returned extractor's
AiAgentStatsExtractor.extract(net.sf.json.JSONObject, io.jenkins.plugins.aiagentjob.AgentUsageStats)method should returnfalsefor any JSON it does not recognise, so the shared extractor handles it as a fallback.- Specified by:
getStatsExtractorin classAiAgentTypeHandler
-