본문으로 건너뛰기

타입 별칭: InferToolOutput<T>

type InferToolOutput<T> = T extends object ? TOutput extends StandardJSONSchemaV1<any, any> ? InferSchemaType<TOutput> : TOutput extends StandardSchemaV1<any, any> ? InferSchemaType<TOutput> : TOutput extends JSONSchema ? unknown : InferSchemaType<TOutput> : unknown;

정의 위치: packages/ai/src/activities/chat/tools/tool-definition.ts:198

도구에서 출력 타입을 추출합니다(Standard JSON Schema에서 추론하거나, 일반 JSONSchema의 경우 unknown을 사용합니다).

타입 매개변수

T

T