Documentation
¶
Overview ¶
Package mcode declares the MiniMax Code Harness.
Index ¶
Constants ¶
const FunctionServerLabel = "functions"
FunctionServerLabel is the native MCP server that carries public functions.
Variables ¶
var Declaration = harnessconfig.Declaration{ Kind: "mcode", Label: "MiniMax Code", Configuration: harnessconfig.Configuration{Providers: []harnessconfig.Provider{ {Protocol: "anthropic"}, {Protocol: "responses"}, {Protocol: "chat_completions"}, }, MaxOutputTokens: true}, Capabilities: proto.AgentKindCapabilities{ SubagentObservations: proto.CapabilitySupported, Streaming: proto.CapabilitySupported, Usage: proto.CapabilityUnsupported, Resume: proto.CapabilitySupported, RetainedNativeHistory: proto.CapabilityUnsupported, NativeSessionRecovery: proto.CapabilityUnsupported, MessageItems: proto.CapabilityUnsupported, ToolObservations: proto.CapabilitySupported, EnvironmentNone: proto.CapabilitySupported, LocalEnvironment: proto.CapabilitySupported, Preparation: proto.CapabilitySupported, WorkspaceReadPreparation: proto.CapabilitySupported, WorkspaceOutputExport: proto.CapabilitySupported, ExecutionControls: proto.CapabilitySupported, StructuredOutput: proto.CapabilityUnsupported, ToolSearch: proto.CapabilityUnsupported, MessageImages: proto.CapabilityUnsupported, FunctionResultImages: proto.CapabilityUnsupported, SubagentControl: proto.CapabilitySupported, DurableInputReceipts: proto.CapabilitySupported, DurableTurns: proto.CapabilitySupported, FunctionTools: proto.CapabilitySupported, MCPHTTPTools: proto.CapabilitySupported, MCPHTTPRequired: proto.CapabilityUnsupported, MCPHTTPBearerAuth: proto.CapabilitySupported, }, Execution: harnessconfig.ExecutionOptions{ WebSearchModes: []string{"disabled"}, ReasoningEfforts: []string{"none", "minimal", "low", "medium", "high", "xhigh", "max"}, ProgrammaticToolCalling: []bool{false}, TextVerbosities: []string{"medium"}, }, Placements: []string{"none", "openai_hosted", "self_hosted"}, MCPOrigins: []string{"service", "environment"}, WhitespaceOnlyText: proto.CapabilityUnsupported, ValidateTools: func(functions []proto.FunctionTool, mcp []proto.MCPHTTPServer) error { if err := harnessconfig.RequireObjectSchemas(functions); err != nil { return err } for _, tool := range functions { if hasKey(tool.Parameters, "x-mcp-header") { return errors.New("The configured engine does not support the x-mcp-header keyword in function schemas.") } } for _, server := range mcp { if server.Stdio != nil { return errors.New("The configured engine cannot start MCP stdio servers in the declared cwd.") } if server.AllowedTools != nil || server.Required { return errors.New("The configured engine requires allowed_tools=null and required=false.") } if len(functions) > 0 && server.ServerLabel == FunctionServerLabel { return errors.New("The configured engine reserves the HTTP MCP label functions.") } } return nil }, }
Declaration is the only authored description of the MiniMax Code Harness. The Runtime may narrow Capabilities for the installed host, never widen them. Whitespace-only text is unsupported because the native runtime refuses such prompts with "Local message content or attachments are required.".
Functions ¶
This section is empty.
Types ¶
This section is empty.