Files
cloudpods/pkg/llm/options/option.go
T
cwz_eikoh 0ff02020e7 Automated cherry pick of #24025: feature(llm): add mcp-agent (#24026)
* feature(llm): add mcp-agent

* feature(llm): support openai in llm_client

* feature(llm): chat-stream demo
2026-01-12 10:46:06 +08:00

38 lines
1.3 KiB
Go

// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package options
import common_options "yunion.io/x/onecloud/pkg/cloudcommon/options"
type LLMOptions struct {
common_options.CommonOptions
common_options.DBOptions
LLMWorkingDirectory string `help:"llm working directory" default:"/opt/cloud/workspace/llm/"`
InstantModelSyncTaskWorkerCount int `help:"backup task worker count" default:"128"`
ModelSyncTaskWaitSecs int `help:"model sync task wait seconds" default:"30"`
StartTaskWorkerCount int `help:"start task worker count" default:"128"`
// MCP Agent 配置
MCPServerURL string `help:"MCP Server URL" default:"http://default-mcp-server:30876"`
MCPAgentTimeout int `help:"MCP Agent request timeout in seconds" default:"120"`
}
var (
Options LLMOptions
)