feat: Add mutual exclusion between structured output and tools in LLM

node
This commit is contained in:
zhsama
2026-02-04 22:28:26 +08:00
parent e0082dbf18
commit 9bd714623e
22 changed files with 314 additions and 105 deletions

View File

@ -85,6 +85,7 @@ type Props = {
required?: boolean
onBlur?: () => void
onFocus?: () => void
disableToolBlocks?: boolean
}
const Editor: FC<Props> = ({
@ -129,6 +130,7 @@ const Editor: FC<Props> = ({
required,
onBlur,
onFocus,
disableToolBlocks,
}) => {
const { t } = useTranslation()
const { eventEmitter } = useEventEmitterContextContext()
@ -312,6 +314,7 @@ const Editor: FC<Props> = ({
editable={!readOnly}
isSupportFileVar={isSupportFileVar}
isSupportSandbox={isSupportSandbox}
disableToolBlocks={disableToolBlocks}
toolMetadata={promptMetadata}
onToolMetadataChange={onPromptMetadataChange}
/>