@@ -27,7 +27,7 @@ type DeclaredCaps struct {
2727
2828// AsHookSupport returns the agent as HookSupport if it both implements the
2929// interface and (for CapabilityDeclarer agents) has declared the capability.
30- func AsHookSupport (ag Agent ) (HookSupport , bool ) { //nolint:ireturn // type-assertion helper must return interface
30+ func AsHookSupport (ag Agent ) (HookSupport , bool ) {
3131 if ag == nil {
3232 return nil , false
3333 }
@@ -43,7 +43,7 @@ func AsHookSupport(ag Agent) (HookSupport, bool) { //nolint:ireturn // type-asse
4343
4444// AsTranscriptAnalyzer returns the agent as TranscriptAnalyzer if it both
4545// implements the interface and (for CapabilityDeclarer agents) has declared the capability.
46- func AsTranscriptAnalyzer (ag Agent ) (TranscriptAnalyzer , bool ) { //nolint:ireturn // type-assertion helper must return interface
46+ func AsTranscriptAnalyzer (ag Agent ) (TranscriptAnalyzer , bool ) {
4747 if ag == nil {
4848 return nil , false
4949 }
@@ -59,7 +59,7 @@ func AsTranscriptAnalyzer(ag Agent) (TranscriptAnalyzer, bool) { //nolint:iretur
5959
6060// AsTranscriptPreparer returns the agent as TranscriptPreparer if it both
6161// implements the interface and (for CapabilityDeclarer agents) has declared the capability.
62- func AsTranscriptPreparer (ag Agent ) (TranscriptPreparer , bool ) { //nolint:ireturn // type-assertion helper must return interface
62+ func AsTranscriptPreparer (ag Agent ) (TranscriptPreparer , bool ) {
6363 if ag == nil {
6464 return nil , false
6565 }
@@ -75,7 +75,7 @@ func AsTranscriptPreparer(ag Agent) (TranscriptPreparer, bool) { //nolint:iretur
7575
7676// AsTokenCalculator returns the agent as TokenCalculator if it both
7777// implements the interface and (for CapabilityDeclarer agents) has declared the capability.
78- func AsTokenCalculator (ag Agent ) (TokenCalculator , bool ) { //nolint:ireturn // type-assertion helper must return interface
78+ func AsTokenCalculator (ag Agent ) (TokenCalculator , bool ) {
7979 if ag == nil {
8080 return nil , false
8181 }
@@ -91,7 +91,7 @@ func AsTokenCalculator(ag Agent) (TokenCalculator, bool) { //nolint:ireturn // t
9191
9292// AsTextGenerator returns the agent as TextGenerator if it both
9393// implements the interface and (for CapabilityDeclarer agents) has declared the capability.
94- func AsTextGenerator (ag Agent ) (TextGenerator , bool ) { //nolint:ireturn // type-assertion helper must return interface
94+ func AsTextGenerator (ag Agent ) (TextGenerator , bool ) {
9595 if ag == nil {
9696 return nil , false
9797 }
@@ -107,7 +107,7 @@ func AsTextGenerator(ag Agent) (TextGenerator, bool) { //nolint:ireturn // type-
107107
108108// AsHookResponseWriter returns the agent as HookResponseWriter if it both
109109// implements the interface and (for CapabilityDeclarer agents) has declared the capability.
110- func AsHookResponseWriter (ag Agent ) (HookResponseWriter , bool ) { //nolint:ireturn // type-assertion helper must return interface
110+ func AsHookResponseWriter (ag Agent ) (HookResponseWriter , bool ) {
111111 if ag == nil {
112112 return nil , false
113113 }
@@ -126,7 +126,7 @@ func AsHookResponseWriter(ag Agent) (HookResponseWriter, bool) { //nolint:iretur
126126// ExtractPrompts is conceptually part of transcript analysis, so it shares the same
127127// capability gate — this prevents calling extract-prompts on external agent binaries
128128// that never declared transcript_analyzer support.
129- func AsPromptExtractor (ag Agent ) (PromptExtractor , bool ) { //nolint:ireturn // type-assertion helper must return interface
129+ func AsPromptExtractor (ag Agent ) (PromptExtractor , bool ) {
130130 if ag == nil {
131131 return nil , false
132132 }
@@ -143,7 +143,7 @@ func AsPromptExtractor(ag Agent) (PromptExtractor, bool) { //nolint:ireturn // t
143143// AsSessionBaseDirProvider returns the agent as SessionBaseDirProvider if it implements
144144// the interface. No capability declaration is needed since this is a built-in-only feature
145145// (external agents use the agent binary's own session resolution).
146- func AsSessionBaseDirProvider (ag Agent ) (SessionBaseDirProvider , bool ) { //nolint:ireturn // type-assertion helper must return interface
146+ func AsSessionBaseDirProvider (ag Agent ) (SessionBaseDirProvider , bool ) {
147147 if ag == nil {
148148 return nil , false
149149 }
@@ -156,7 +156,7 @@ func AsSessionBaseDirProvider(ag Agent) (SessionBaseDirProvider, bool) { //nolin
156156
157157// AsSubagentAwareExtractor returns the agent as SubagentAwareExtractor if it both
158158// implements the interface and (for CapabilityDeclarer agents) has declared the capability.
159- func AsSubagentAwareExtractor (ag Agent ) (SubagentAwareExtractor , bool ) { //nolint:ireturn // type-assertion helper must return interface
159+ func AsSubagentAwareExtractor (ag Agent ) (SubagentAwareExtractor , bool ) {
160160 if ag == nil {
161161 return nil , false
162162 }
0 commit comments