INNER CODE UNIT · Go

func

k1LoW/runn · agent.go:162

func (rnr *agentRunner) Run(ctx context.Context, s *step) error {
	if !scope.IsRunAgentAllowed() {
		return errors.New("scope error: agent runner is not allowed. 'run:agent' scope is required")
	}

	rnr.mu.Lock()
	defer rnr.mu.Unlock()

	o := s.parent
	e, err := o.expandBeforeRecord(s.agentRequest, s)
	if err != nil {
		return err
	}
	r, ok := e.(map[string]any)
	if !ok {
		return fmt.Errorf("invalid agent request: %v", e)
	}
	parsed, err := parseAgentRequest(r)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…