File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
packages/trigger-sdk/src/v3 Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 33 apiClientManager ,
44 resourceCatalog ,
55 SemanticInternalAttributes ,
6- taskContext ,
76 type PromptMetadataWithFunctions ,
87 type TaskSchema ,
98 type inferSchemaIn ,
@@ -154,11 +153,10 @@ export function definePrompt<TVariables extends TaskSchema | undefined = undefin
154153 : variables ;
155154 const vars = validated as Record < string , unknown > ;
156155
157- const ctx = taskContext . ctx ;
158156 const apiClient = apiClientManager . client ;
159157
160- // If we're running inside a task on the platform, resolve via the API
161- if ( ctx && apiClient ) {
158+ // Resolve via the API when a client is configured (inside tasks or via configure())
159+ if ( apiClient ) {
162160 const response = await apiClient . resolvePrompt (
163161 options . id ,
164162 {
You can’t perform that action at this time.
0 commit comments