MCPcopy Create free account
hub / github.com/astercloud/aster / getExecutionMode

Method getExecutionMode

pkg/agent/agent.go:1590–1595  ·  view source on GitHub ↗

getExecutionMode 获取执行模式

()

Source from the content-addressed store, hash-verified

1588
1589// getExecutionMode 获取执行模式
1590func (a *Agent) getExecutionMode() types.ExecutionMode {
1591 if a.config != nil && a.config.ModelConfig != nil && a.config.ModelConfig.ExecutionMode != "" {
1592 return a.config.ModelConfig.ExecutionMode
1593 }
1594 return types.ExecutionModeStreaming // 默认流式(向后兼容)
1595}
1596
1597// inferProviderFromModel 从模型名称推断 provider
1598func inferProviderFromModel(model string) string {

Callers 1

runModelStepMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected