Add link understanding tool support (#1637)
* Add * Fix --------- Co-authored-by: Richard <dasilva333@DESKTOP-74E3GJO.localdomain>
This commit is contained in:
@@ -102,6 +102,30 @@ export type MediaUnderstandingConfig = {
|
||||
models?: MediaUnderstandingModelConfig[];
|
||||
};
|
||||
|
||||
export type LinkModelConfig = {
|
||||
/** Use a CLI command for link processing. */
|
||||
type?: "cli";
|
||||
/** CLI binary (required when type=cli). */
|
||||
command: string;
|
||||
/** CLI args (template-enabled). */
|
||||
args?: string[];
|
||||
/** Optional timeout override (seconds) for this model entry. */
|
||||
timeoutSeconds?: number;
|
||||
};
|
||||
|
||||
export type LinkToolsConfig = {
|
||||
/** Enable link understanding when models are configured. */
|
||||
enabled?: boolean;
|
||||
/** Optional scope gating for understanding. */
|
||||
scope?: MediaUnderstandingScopeConfig;
|
||||
/** Max number of links to process per message. */
|
||||
maxLinks?: number;
|
||||
/** Default timeout (seconds). */
|
||||
timeoutSeconds?: number;
|
||||
/** Ordered model list (fallbacks in order). */
|
||||
models?: LinkModelConfig[];
|
||||
};
|
||||
|
||||
export type MediaToolsConfig = {
|
||||
/** Shared model list applied across image/audio/video. */
|
||||
models?: MediaUnderstandingModelConfig[];
|
||||
@@ -347,6 +371,7 @@ export type ToolsConfig = {
|
||||
};
|
||||
};
|
||||
media?: MediaToolsConfig;
|
||||
links?: LinkToolsConfig;
|
||||
/** Message tool configuration. */
|
||||
message?: {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user