File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 11from __future__ import annotations
2+ from _invoke_model_activity import ActivityModelInput , ModelTracingInput
23import azure .durable_functions as df
34
45import logging
@@ -119,7 +120,7 @@ def make_tool_info(tool: Tool) -> ToolInput:
119120 )
120121
121122 activity_output = self .durable_orchestration_context .call_activity (
122- "InvokeModelActivity " ,
123+ "invoke_model_activity " ,
123124 activity_input
124125 )
125126
Original file line number Diff line number Diff line change 1+ from typing import Any
12import azure .functions as func
23import logging
34
@@ -22,3 +23,10 @@ def basic_hello_world_orchestrator(context):
2223 from basic .hello_world import main
2324 result = main ()
2425 return result
26+
27+ @app .activity_trigger (input_name = "input" )
28+ def invoke_model_activity (input : Any ):
29+ # Instantiate ModelActivity
30+ from _invoke_model_activity import ModelActivity , ActivityModelInput
31+ model_activity = ModelActivity ()
32+ return model_activity .invoke_model_activity (input )
You can’t perform that action at this time.
0 commit comments