Experimental wrapper over Anthropic chat models that adds support for a function calling interface.

⚠️ Deprecated ⚠️

Prefer traditional tool use through ChatAnthropic.

This feature is deprecated and will be removed in the future.

It is not recommended for use.

Hierarchy

Constructors

Properties

llm: BaseChatModel<BaseLanguageModelCallOptions, BaseMessageChunk>
systemPromptTemplate: BasePromptTemplate<any, BasePromptValueInterface, any>
stopSequences?: string[]

Methods

  • Type Parameters

    • RunOutput extends Record<string, any> = Record<string, any>

    Parameters

    • outputSchema: Record<string, any> | StructuredOutputMethodParams<RunOutput, false> | ZodType<RunOutput, ZodTypeDef, RunOutput>
    • Optional config: StructuredOutputMethodOptions<false> & {
          force?: boolean;
      }

    Returns Runnable<BaseLanguageModelInput, RunOutput, RunnableConfig>

  • Type Parameters

    • RunOutput extends Record<string, any> = Record<string, any>

    Parameters

    • outputSchema: Record<string, any> | StructuredOutputMethodParams<RunOutput, true> | ZodType<RunOutput, ZodTypeDef, RunOutput>
    • Optional config: StructuredOutputMethodOptions<true> & {
          force?: boolean;
      }

    Returns Runnable<BaseLanguageModelInput, {
        parsed: RunOutput;
        raw: BaseMessage;
    }, RunnableConfig>

Generated using TypeDoc