这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@balanceiskey
Copy link
Contributor

No description provided.


if needsApproval {
trtc.Status.Status = "AwaitingHumanApproval"
trtc.Status.StatusDetail = fmt.Sprintf("Waiting for human approval via contact channel %s", mcpServer.Spec.ApprovalContactChannel.Name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • fetch the contact channel based on the MCP server ref
  • create a post /humanlayer/v1/function_calls
  • store the call ID on the status
  • requeue in 5 seconds
  • in reconcile loop
if status == AwaitingHumanApproval {
   GET /humanalyer/v1/function_calls/{call_id}
   if not finished:
        requeue in 5s
   else -> either execute tool, or set output to denied

@balanceiskey
Copy link
Contributor Author

A note here, going to add a bit more on top of this PR to push it further toward making the actual call to HL per @dexhorthy's note above.

@dexhorthy dexhorthy merged commit 0ae087e into humanlayer:main Mar 24, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants