程序包 io.agentscope.core.model
package io.agentscope.core.model
-
类说明Controls whether
ModelRegistrycaches models created with aModelCreationContext.Abstract base class for all models in the AgentScope framework.Represents a chat completion response from a language model.Builder for creating ChatResponse instances.Represents token usage information for chat completion responses.Builder for creating ChatUsage instances.Unified execution configuration for timeout and retry behavior.Builder for ExecutionConfig.Immutable generation options for LLM models.Known context window sizes for popular models.Provider-neutral model creation context used byModelRegistryand model provider SPI implementations.Exception thrown when model operations fail.Exception contract for model providers that can expose an HTTP status code.Registry for resolvingModelinstances from string identifiers (named instances orprovider:modelpatterns).Utility class for common Model operations.Configuration for how to ensure the model calls generate_response tool in structured output mode.Represents the tool choice behavior for LLM model calls.Auto mode: Let the model decide whether and which tools to call.None mode: Prevent the model from calling any tools.Required mode: Force the model to call at least one tool.Specific mode: Force the model to call a specific tool by name.Immutable tool schema definition.Builder for creating ToolSchema instances.