Skip to content

Commit

Permalink
ADD context dump info for action.
Browse files Browse the repository at this point in the history
ADD context dump info for action.
  • Loading branch information
karminski committed Jan 24, 2024
1 parent f3f7c07 commit ce787a2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/actionruntime/aiagent/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,20 @@ func (r *AIAgentConnector) Run(resourceOptions map[string]interface{}, actionOpt
Extra: map[string]interface{}{},
}

// replace template with context

// contextRaw := actionOptions["variables"]
// contextRaw := actionOptions["input"]
// parser_template.AssembleTemplateWithVariable(p.Action.RawQuery, ,)

// call api
api, errInNewAPI := resourcemanager.NewIllaResourceManagerRestAPI()
if errInNewAPI != nil {
return res, errInNewAPI
}
api.OpenDebug()
fmt.Printf("[DUMP] r: %+v\n", r)
fmt.Printf("[DUMP] rawActionOptions: %+v\n", rawActionOptions)
fmt.Printf("[DUMP] actionOptions: %+v\n", actionOptions)
runAIAgentResult, errInRunAIAgent := api.RunAIAgent(actionOptions)
fmt.Printf("[DUMP] runAIAgentResult: %+v\n", runAIAgentResult)
Expand Down

0 comments on commit ce787a2

Please sign in to comment.