:py:mod:`vendor_fabric.anthropic` ================================= .. py:module:: vendor_fabric.anthropic .. autodoc2-docstring:: vendor_fabric.anthropic :parser: myst :allowtitles: Submodules ---------- .. toctree:: :titlesonly: :maxdepth: 1 vendor_fabric.anthropic.tools Package Contents ---------------- Classes ~~~~~~~ .. list-table:: :class: autosummary longtable :align: left * - :py:obj:`MessageRole ` - .. autodoc2-docstring:: vendor_fabric.anthropic.MessageRole :parser: myst :summary: * - :py:obj:`ContentBlock ` - .. autodoc2-docstring:: vendor_fabric.anthropic.ContentBlock :parser: myst :summary: * - :py:obj:`Usage ` - .. autodoc2-docstring:: vendor_fabric.anthropic.Usage :parser: myst :summary: * - :py:obj:`Message ` - .. autodoc2-docstring:: vendor_fabric.anthropic.Message :parser: myst :summary: * - :py:obj:`Model ` - .. autodoc2-docstring:: vendor_fabric.anthropic.Model :parser: myst :summary: * - :py:obj:`AnthropicConnector ` - .. autodoc2-docstring:: vendor_fabric.anthropic.AnthropicConnector :parser: myst :summary: Data ~~~~ .. list-table:: :class: autosummary longtable :align: left * - :py:obj:`DEFAULT_API_URL ` - .. autodoc2-docstring:: vendor_fabric.anthropic.DEFAULT_API_URL :parser: myst :summary: * - :py:obj:`DEFAULT_API_VERSION ` - .. autodoc2-docstring:: vendor_fabric.anthropic.DEFAULT_API_VERSION :parser: myst :summary: * - :py:obj:`DEFAULT_TIMEOUT ` - .. autodoc2-docstring:: vendor_fabric.anthropic.DEFAULT_TIMEOUT :parser: myst :summary: * - :py:obj:`DEFAULT_MAX_TOKENS ` - .. autodoc2-docstring:: vendor_fabric.anthropic.DEFAULT_MAX_TOKENS :parser: myst :summary: * - :py:obj:`CLAUDE_MODELS ` - .. autodoc2-docstring:: vendor_fabric.anthropic.CLAUDE_MODELS :parser: myst :summary: API ~~~ .. py:data:: DEFAULT_API_URL :canonical: vendor_fabric.anthropic.DEFAULT_API_URL :value: 'https://api.anthropic.com' .. autodoc2-docstring:: vendor_fabric.anthropic.DEFAULT_API_URL :parser: myst .. py:data:: DEFAULT_API_VERSION :canonical: vendor_fabric.anthropic.DEFAULT_API_VERSION :value: '2023-06-01' .. autodoc2-docstring:: vendor_fabric.anthropic.DEFAULT_API_VERSION :parser: myst .. py:data:: DEFAULT_TIMEOUT :canonical: vendor_fabric.anthropic.DEFAULT_TIMEOUT :value: 60.0 .. autodoc2-docstring:: vendor_fabric.anthropic.DEFAULT_TIMEOUT :parser: myst .. py:data:: DEFAULT_MAX_TOKENS :canonical: vendor_fabric.anthropic.DEFAULT_MAX_TOKENS :value: 4096 .. autodoc2-docstring:: vendor_fabric.anthropic.DEFAULT_MAX_TOKENS :parser: myst .. py:data:: CLAUDE_MODELS :canonical: vendor_fabric.anthropic.CLAUDE_MODELS :value: None .. autodoc2-docstring:: vendor_fabric.anthropic.CLAUDE_MODELS :parser: myst .. py:exception:: AnthropicError(message: str, status_code: int | None = None, error_type: str | None = None) :canonical: vendor_fabric.anthropic.AnthropicError Bases: :py:obj:`Exception` .. autodoc2-docstring:: vendor_fabric.anthropic.AnthropicError :parser: myst .. rubric:: Initialization .. autodoc2-docstring:: vendor_fabric.anthropic.AnthropicError.__init__ :parser: myst .. py:method:: add_note() :canonical: vendor_fabric.anthropic.AnthropicError.add_note .. py:class:: args :canonical: vendor_fabric.anthropic.AnthropicError.args .. py:method:: with_traceback() :canonical: vendor_fabric.anthropic.AnthropicError.with_traceback .. py:exception:: AnthropicAuthError(message: str, status_code: int | None = None, error_type: str | None = None) :canonical: vendor_fabric.anthropic.AnthropicAuthError Bases: :py:obj:`vendor_fabric.anthropic.AnthropicError` .. autodoc2-docstring:: vendor_fabric.anthropic.AnthropicAuthError :parser: myst .. rubric:: Initialization .. autodoc2-docstring:: vendor_fabric.anthropic.AnthropicAuthError.__init__ :parser: myst .. py:method:: add_note() :canonical: vendor_fabric.anthropic.AnthropicAuthError.add_note .. py:class:: args :canonical: vendor_fabric.anthropic.AnthropicAuthError.args .. py:method:: with_traceback() :canonical: vendor_fabric.anthropic.AnthropicAuthError.with_traceback .. py:exception:: AnthropicRateLimitError(message: str, status_code: int | None = None, error_type: str | None = None) :canonical: vendor_fabric.anthropic.AnthropicRateLimitError Bases: :py:obj:`vendor_fabric.anthropic.AnthropicError` .. autodoc2-docstring:: vendor_fabric.anthropic.AnthropicRateLimitError :parser: myst .. rubric:: Initialization .. autodoc2-docstring:: vendor_fabric.anthropic.AnthropicRateLimitError.__init__ :parser: myst .. py:method:: add_note() :canonical: vendor_fabric.anthropic.AnthropicRateLimitError.add_note .. py:class:: args :canonical: vendor_fabric.anthropic.AnthropicRateLimitError.args .. py:method:: with_traceback() :canonical: vendor_fabric.anthropic.AnthropicRateLimitError.with_traceback .. py:exception:: AnthropicAPIError(message: str, status_code: int | None = None, error_type: str | None = None) :canonical: vendor_fabric.anthropic.AnthropicAPIError Bases: :py:obj:`vendor_fabric.anthropic.AnthropicError` .. autodoc2-docstring:: vendor_fabric.anthropic.AnthropicAPIError :parser: myst .. rubric:: Initialization .. autodoc2-docstring:: vendor_fabric.anthropic.AnthropicAPIError.__init__ :parser: myst .. py:method:: add_note() :canonical: vendor_fabric.anthropic.AnthropicAPIError.add_note .. py:class:: args :canonical: vendor_fabric.anthropic.AnthropicAPIError.args .. py:method:: with_traceback() :canonical: vendor_fabric.anthropic.AnthropicAPIError.with_traceback .. py:class:: MessageRole() :canonical: vendor_fabric.anthropic.MessageRole Bases: :py:obj:`enum.StrEnum` .. autodoc2-docstring:: vendor_fabric.anthropic.MessageRole :parser: myst .. rubric:: Initialization .. autodoc2-docstring:: vendor_fabric.anthropic.MessageRole.__init__ :parser: myst .. py:attribute:: USER :canonical: vendor_fabric.anthropic.MessageRole.USER :value: 'user' .. autodoc2-docstring:: vendor_fabric.anthropic.MessageRole.USER :parser: myst .. py:attribute:: ASSISTANT :canonical: vendor_fabric.anthropic.MessageRole.ASSISTANT :value: 'assistant' .. autodoc2-docstring:: vendor_fabric.anthropic.MessageRole.ASSISTANT :parser: myst .. py:method:: capitalize() :canonical: vendor_fabric.anthropic.MessageRole.capitalize .. py:method:: casefold() :canonical: vendor_fabric.anthropic.MessageRole.casefold .. py:method:: center() :canonical: vendor_fabric.anthropic.MessageRole.center .. py:method:: count() :canonical: vendor_fabric.anthropic.MessageRole.count .. py:method:: encode() :canonical: vendor_fabric.anthropic.MessageRole.encode .. py:method:: endswith() :canonical: vendor_fabric.anthropic.MessageRole.endswith .. py:method:: expandtabs() :canonical: vendor_fabric.anthropic.MessageRole.expandtabs .. py:method:: find() :canonical: vendor_fabric.anthropic.MessageRole.find .. py:method:: format() :canonical: vendor_fabric.anthropic.MessageRole.format .. py:method:: format_map() :canonical: vendor_fabric.anthropic.MessageRole.format_map .. py:method:: index() :canonical: vendor_fabric.anthropic.MessageRole.index .. py:method:: isalnum() :canonical: vendor_fabric.anthropic.MessageRole.isalnum .. py:method:: isalpha() :canonical: vendor_fabric.anthropic.MessageRole.isalpha .. py:method:: isascii() :canonical: vendor_fabric.anthropic.MessageRole.isascii .. py:method:: isdecimal() :canonical: vendor_fabric.anthropic.MessageRole.isdecimal .. py:method:: isdigit() :canonical: vendor_fabric.anthropic.MessageRole.isdigit .. py:method:: isidentifier() :canonical: vendor_fabric.anthropic.MessageRole.isidentifier .. py:method:: islower() :canonical: vendor_fabric.anthropic.MessageRole.islower .. py:method:: isnumeric() :canonical: vendor_fabric.anthropic.MessageRole.isnumeric .. py:method:: isprintable() :canonical: vendor_fabric.anthropic.MessageRole.isprintable .. py:method:: isspace() :canonical: vendor_fabric.anthropic.MessageRole.isspace .. py:method:: istitle() :canonical: vendor_fabric.anthropic.MessageRole.istitle .. py:method:: isupper() :canonical: vendor_fabric.anthropic.MessageRole.isupper .. py:method:: join() :canonical: vendor_fabric.anthropic.MessageRole.join .. py:method:: ljust() :canonical: vendor_fabric.anthropic.MessageRole.ljust .. py:method:: lower() :canonical: vendor_fabric.anthropic.MessageRole.lower .. py:method:: lstrip() :canonical: vendor_fabric.anthropic.MessageRole.lstrip .. py:method:: partition() :canonical: vendor_fabric.anthropic.MessageRole.partition .. py:method:: removeprefix() :canonical: vendor_fabric.anthropic.MessageRole.removeprefix .. py:method:: removesuffix() :canonical: vendor_fabric.anthropic.MessageRole.removesuffix .. py:method:: replace() :canonical: vendor_fabric.anthropic.MessageRole.replace .. py:method:: rfind() :canonical: vendor_fabric.anthropic.MessageRole.rfind .. py:method:: rindex() :canonical: vendor_fabric.anthropic.MessageRole.rindex .. py:method:: rjust() :canonical: vendor_fabric.anthropic.MessageRole.rjust .. py:method:: rpartition() :canonical: vendor_fabric.anthropic.MessageRole.rpartition .. py:method:: rsplit() :canonical: vendor_fabric.anthropic.MessageRole.rsplit .. py:method:: rstrip() :canonical: vendor_fabric.anthropic.MessageRole.rstrip .. py:method:: split() :canonical: vendor_fabric.anthropic.MessageRole.split .. py:method:: splitlines() :canonical: vendor_fabric.anthropic.MessageRole.splitlines .. py:method:: startswith() :canonical: vendor_fabric.anthropic.MessageRole.startswith .. py:method:: strip() :canonical: vendor_fabric.anthropic.MessageRole.strip .. py:method:: swapcase() :canonical: vendor_fabric.anthropic.MessageRole.swapcase .. py:method:: title() :canonical: vendor_fabric.anthropic.MessageRole.title .. py:method:: translate() :canonical: vendor_fabric.anthropic.MessageRole.translate .. py:method:: upper() :canonical: vendor_fabric.anthropic.MessageRole.upper .. py:method:: zfill() :canonical: vendor_fabric.anthropic.MessageRole.zfill .. py:method:: name() :canonical: vendor_fabric.anthropic.MessageRole.name .. py:method:: value() :canonical: vendor_fabric.anthropic.MessageRole.value .. py:class:: ContentBlock(/, **data: typing.Any) :canonical: vendor_fabric.anthropic.ContentBlock Bases: :py:obj:`pydantic.BaseModel` .. autodoc2-docstring:: vendor_fabric.anthropic.ContentBlock :parser: myst .. rubric:: Initialization .. autodoc2-docstring:: vendor_fabric.anthropic.ContentBlock.__init__ :parser: myst .. py:attribute:: model_config :canonical: vendor_fabric.anthropic.ContentBlock.model_config :value: 'ConfigDict(...)' .. autodoc2-docstring:: vendor_fabric.anthropic.ContentBlock.model_config :parser: myst .. py:attribute:: type :canonical: vendor_fabric.anthropic.ContentBlock.type :type: str :value: 'Field(...)' .. autodoc2-docstring:: vendor_fabric.anthropic.ContentBlock.type :parser: myst .. py:attribute:: text :canonical: vendor_fabric.anthropic.ContentBlock.text :type: str | None :value: 'Field(...)' .. autodoc2-docstring:: vendor_fabric.anthropic.ContentBlock.text :parser: myst .. py:attribute:: id :canonical: vendor_fabric.anthropic.ContentBlock.id :type: str | None :value: 'Field(...)' .. autodoc2-docstring:: vendor_fabric.anthropic.ContentBlock.id :parser: myst .. py:attribute:: name :canonical: vendor_fabric.anthropic.ContentBlock.name :type: str | None :value: 'Field(...)' .. autodoc2-docstring:: vendor_fabric.anthropic.ContentBlock.name :parser: myst .. py:attribute:: input :canonical: vendor_fabric.anthropic.ContentBlock.input :type: dict[str, typing.Any] | None :value: 'Field(...)' .. autodoc2-docstring:: vendor_fabric.anthropic.ContentBlock.input :parser: myst .. py:method:: model_fields() -> dict[str, pydantic.fields.FieldInfo] :canonical: vendor_fabric.anthropic.ContentBlock.model_fields :classmethod: .. py:method:: model_computed_fields() -> dict[str, pydantic.fields.ComputedFieldInfo] :canonical: vendor_fabric.anthropic.ContentBlock.model_computed_fields :classmethod: .. py:property:: model_extra :canonical: vendor_fabric.anthropic.ContentBlock.model_extra :type: dict[str, typing.Any] | None .. py:property:: model_fields_set :canonical: vendor_fabric.anthropic.ContentBlock.model_fields_set :type: set[str] .. py:method:: model_construct(_fields_set: set[str] | None = None, **values: typing.Any) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.ContentBlock.model_construct :classmethod: .. py:method:: model_copy(*, update: collections.abc.Mapping[str, typing.Any] | None = None, deep: bool = False) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.ContentBlock.model_copy .. py:method:: model_dump(*, mode: typing.Literal[json, python] | str = 'python', include: pydantic.main.IncEx | None = None, exclude: pydantic.main.IncEx | None = None, context: typing.Any | None = None, by_alias: bool | None = None, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False, exclude_computed_fields: bool = False, round_trip: bool = False, warnings: bool | typing.Literal[none, warn, error] = True, fallback: typing.Callable[[typing.Any], typing.Any] | None = None, serialize_as_any: bool = False, polymorphic_serialization: bool | None = None) -> dict[str, typing.Any] :canonical: vendor_fabric.anthropic.ContentBlock.model_dump .. py:method:: model_dump_json(*, indent: int | None = None, ensure_ascii: bool = False, include: pydantic.main.IncEx | None = None, exclude: pydantic.main.IncEx | None = None, context: typing.Any | None = None, by_alias: bool | None = None, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False, exclude_computed_fields: bool = False, round_trip: bool = False, warnings: bool | typing.Literal[none, warn, error] = True, fallback: typing.Callable[[typing.Any], typing.Any] | None = None, serialize_as_any: bool = False, polymorphic_serialization: bool | None = None) -> str :canonical: vendor_fabric.anthropic.ContentBlock.model_dump_json .. py:method:: model_json_schema(by_alias: bool = True, ref_template: str = DEFAULT_REF_TEMPLATE, schema_generator: type[pydantic.json_schema.GenerateJsonSchema] = GenerateJsonSchema, mode: pydantic.json_schema.JsonSchemaMode = 'validation', *, union_format: typing.Literal[any_of, primitive_type_array] = 'any_of') -> dict[str, typing.Any] :canonical: vendor_fabric.anthropic.ContentBlock.model_json_schema :classmethod: .. py:method:: model_parametrized_name(params: tuple[type[typing.Any], ...]) -> str :canonical: vendor_fabric.anthropic.ContentBlock.model_parametrized_name :classmethod: .. py:method:: model_post_init(context: typing.Any, /) -> None :canonical: vendor_fabric.anthropic.ContentBlock.model_post_init .. py:method:: model_rebuild(*, force: bool = False, raise_errors: bool = True, _parent_namespace_depth: int = 2, _types_namespace: pydantic._internal._namespace_utils.MappingNamespace | None = None) -> bool | None :canonical: vendor_fabric.anthropic.ContentBlock.model_rebuild :classmethod: .. py:method:: model_validate(obj: typing.Any, *, strict: bool | None = None, extra: pydantic.config.ExtraValues | None = None, from_attributes: bool | None = None, context: typing.Any | None = None, by_alias: bool | None = None, by_name: bool | None = None) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.ContentBlock.model_validate :classmethod: .. py:method:: model_validate_json(json_data: str | bytes | bytearray, *, strict: bool | None = None, extra: pydantic.config.ExtraValues | None = None, context: typing.Any | None = None, by_alias: bool | None = None, by_name: bool | None = None) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.ContentBlock.model_validate_json :classmethod: .. py:method:: model_validate_strings(obj: typing.Any, *, strict: bool | None = None, extra: pydantic.config.ExtraValues | None = None, context: typing.Any | None = None, by_alias: bool | None = None, by_name: bool | None = None) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.ContentBlock.model_validate_strings :classmethod: .. py:method:: dict(*, include: pydantic.main.IncEx | None = None, exclude: pydantic.main.IncEx | None = None, by_alias: bool = False, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False) -> typing.Dict[str, typing.Any] :canonical: vendor_fabric.anthropic.ContentBlock.dict .. py:method:: json(*, include: pydantic.main.IncEx | None = None, exclude: pydantic.main.IncEx | None = None, by_alias: bool = False, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False, encoder: typing.Callable[[typing.Any], typing.Any] | None = PydanticUndefined, models_as_dict: bool = PydanticUndefined, **dumps_kwargs: typing.Any) -> str :canonical: vendor_fabric.anthropic.ContentBlock.json .. py:method:: parse_obj(obj: typing.Any) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.ContentBlock.parse_obj :classmethod: .. py:method:: parse_raw(b: str | bytes, *, content_type: str | None = None, encoding: str = 'utf8', proto: pydantic.deprecated.parse.Protocol | None = None, allow_pickle: bool = False) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.ContentBlock.parse_raw :classmethod: .. py:method:: parse_file(path: str | pathlib.Path, *, content_type: str | None = None, encoding: str = 'utf8', proto: pydantic.deprecated.parse.Protocol | None = None, allow_pickle: bool = False) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.ContentBlock.parse_file :classmethod: .. py:method:: from_orm(obj: typing.Any) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.ContentBlock.from_orm :classmethod: .. py:method:: construct(_fields_set: set[str] | None = None, **values: typing.Any) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.ContentBlock.construct :classmethod: .. py:method:: copy(*, include: pydantic._internal._utils.AbstractSetIntStr | pydantic._internal._utils.MappingIntStrAny | None = None, exclude: pydantic._internal._utils.AbstractSetIntStr | pydantic._internal._utils.MappingIntStrAny | None = None, update: typing.Dict[str, typing.Any] | None = None, deep: bool = False) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.ContentBlock.copy .. py:method:: schema(by_alias: bool = True, ref_template: str = DEFAULT_REF_TEMPLATE) -> typing.Dict[str, typing.Any] :canonical: vendor_fabric.anthropic.ContentBlock.schema :classmethod: .. py:method:: schema_json(*, by_alias: bool = True, ref_template: str = DEFAULT_REF_TEMPLATE, **dumps_kwargs: typing.Any) -> str :canonical: vendor_fabric.anthropic.ContentBlock.schema_json :classmethod: .. py:method:: validate(value: typing.Any) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.ContentBlock.validate :classmethod: .. py:method:: update_forward_refs(**localns: typing.Any) -> None :canonical: vendor_fabric.anthropic.ContentBlock.update_forward_refs :classmethod: .. py:class:: Usage(/, **data: typing.Any) :canonical: vendor_fabric.anthropic.Usage Bases: :py:obj:`pydantic.BaseModel` .. autodoc2-docstring:: vendor_fabric.anthropic.Usage :parser: myst .. rubric:: Initialization .. autodoc2-docstring:: vendor_fabric.anthropic.Usage.__init__ :parser: myst .. py:attribute:: model_config :canonical: vendor_fabric.anthropic.Usage.model_config :value: 'ConfigDict(...)' .. autodoc2-docstring:: vendor_fabric.anthropic.Usage.model_config :parser: myst .. py:attribute:: input_tokens :canonical: vendor_fabric.anthropic.Usage.input_tokens :type: int :value: 'Field(...)' .. autodoc2-docstring:: vendor_fabric.anthropic.Usage.input_tokens :parser: myst .. py:attribute:: output_tokens :canonical: vendor_fabric.anthropic.Usage.output_tokens :type: int :value: 'Field(...)' .. autodoc2-docstring:: vendor_fabric.anthropic.Usage.output_tokens :parser: myst .. py:method:: model_fields() -> dict[str, pydantic.fields.FieldInfo] :canonical: vendor_fabric.anthropic.Usage.model_fields :classmethod: .. py:method:: model_computed_fields() -> dict[str, pydantic.fields.ComputedFieldInfo] :canonical: vendor_fabric.anthropic.Usage.model_computed_fields :classmethod: .. py:property:: model_extra :canonical: vendor_fabric.anthropic.Usage.model_extra :type: dict[str, typing.Any] | None .. py:property:: model_fields_set :canonical: vendor_fabric.anthropic.Usage.model_fields_set :type: set[str] .. py:method:: model_construct(_fields_set: set[str] | None = None, **values: typing.Any) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Usage.model_construct :classmethod: .. py:method:: model_copy(*, update: collections.abc.Mapping[str, typing.Any] | None = None, deep: bool = False) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Usage.model_copy .. py:method:: model_dump(*, mode: typing.Literal[json, python] | str = 'python', include: pydantic.main.IncEx | None = None, exclude: pydantic.main.IncEx | None = None, context: typing.Any | None = None, by_alias: bool | None = None, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False, exclude_computed_fields: bool = False, round_trip: bool = False, warnings: bool | typing.Literal[none, warn, error] = True, fallback: typing.Callable[[typing.Any], typing.Any] | None = None, serialize_as_any: bool = False, polymorphic_serialization: bool | None = None) -> dict[str, typing.Any] :canonical: vendor_fabric.anthropic.Usage.model_dump .. py:method:: model_dump_json(*, indent: int | None = None, ensure_ascii: bool = False, include: pydantic.main.IncEx | None = None, exclude: pydantic.main.IncEx | None = None, context: typing.Any | None = None, by_alias: bool | None = None, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False, exclude_computed_fields: bool = False, round_trip: bool = False, warnings: bool | typing.Literal[none, warn, error] = True, fallback: typing.Callable[[typing.Any], typing.Any] | None = None, serialize_as_any: bool = False, polymorphic_serialization: bool | None = None) -> str :canonical: vendor_fabric.anthropic.Usage.model_dump_json .. py:method:: model_json_schema(by_alias: bool = True, ref_template: str = DEFAULT_REF_TEMPLATE, schema_generator: type[pydantic.json_schema.GenerateJsonSchema] = GenerateJsonSchema, mode: pydantic.json_schema.JsonSchemaMode = 'validation', *, union_format: typing.Literal[any_of, primitive_type_array] = 'any_of') -> dict[str, typing.Any] :canonical: vendor_fabric.anthropic.Usage.model_json_schema :classmethod: .. py:method:: model_parametrized_name(params: tuple[type[typing.Any], ...]) -> str :canonical: vendor_fabric.anthropic.Usage.model_parametrized_name :classmethod: .. py:method:: model_post_init(context: typing.Any, /) -> None :canonical: vendor_fabric.anthropic.Usage.model_post_init .. py:method:: model_rebuild(*, force: bool = False, raise_errors: bool = True, _parent_namespace_depth: int = 2, _types_namespace: pydantic._internal._namespace_utils.MappingNamespace | None = None) -> bool | None :canonical: vendor_fabric.anthropic.Usage.model_rebuild :classmethod: .. py:method:: model_validate(obj: typing.Any, *, strict: bool | None = None, extra: pydantic.config.ExtraValues | None = None, from_attributes: bool | None = None, context: typing.Any | None = None, by_alias: bool | None = None, by_name: bool | None = None) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Usage.model_validate :classmethod: .. py:method:: model_validate_json(json_data: str | bytes | bytearray, *, strict: bool | None = None, extra: pydantic.config.ExtraValues | None = None, context: typing.Any | None = None, by_alias: bool | None = None, by_name: bool | None = None) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Usage.model_validate_json :classmethod: .. py:method:: model_validate_strings(obj: typing.Any, *, strict: bool | None = None, extra: pydantic.config.ExtraValues | None = None, context: typing.Any | None = None, by_alias: bool | None = None, by_name: bool | None = None) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Usage.model_validate_strings :classmethod: .. py:method:: dict(*, include: pydantic.main.IncEx | None = None, exclude: pydantic.main.IncEx | None = None, by_alias: bool = False, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False) -> typing.Dict[str, typing.Any] :canonical: vendor_fabric.anthropic.Usage.dict .. py:method:: json(*, include: pydantic.main.IncEx | None = None, exclude: pydantic.main.IncEx | None = None, by_alias: bool = False, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False, encoder: typing.Callable[[typing.Any], typing.Any] | None = PydanticUndefined, models_as_dict: bool = PydanticUndefined, **dumps_kwargs: typing.Any) -> str :canonical: vendor_fabric.anthropic.Usage.json .. py:method:: parse_obj(obj: typing.Any) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Usage.parse_obj :classmethod: .. py:method:: parse_raw(b: str | bytes, *, content_type: str | None = None, encoding: str = 'utf8', proto: pydantic.deprecated.parse.Protocol | None = None, allow_pickle: bool = False) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Usage.parse_raw :classmethod: .. py:method:: parse_file(path: str | pathlib.Path, *, content_type: str | None = None, encoding: str = 'utf8', proto: pydantic.deprecated.parse.Protocol | None = None, allow_pickle: bool = False) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Usage.parse_file :classmethod: .. py:method:: from_orm(obj: typing.Any) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Usage.from_orm :classmethod: .. py:method:: construct(_fields_set: set[str] | None = None, **values: typing.Any) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Usage.construct :classmethod: .. py:method:: copy(*, include: pydantic._internal._utils.AbstractSetIntStr | pydantic._internal._utils.MappingIntStrAny | None = None, exclude: pydantic._internal._utils.AbstractSetIntStr | pydantic._internal._utils.MappingIntStrAny | None = None, update: typing.Dict[str, typing.Any] | None = None, deep: bool = False) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Usage.copy .. py:method:: schema(by_alias: bool = True, ref_template: str = DEFAULT_REF_TEMPLATE) -> typing.Dict[str, typing.Any] :canonical: vendor_fabric.anthropic.Usage.schema :classmethod: .. py:method:: schema_json(*, by_alias: bool = True, ref_template: str = DEFAULT_REF_TEMPLATE, **dumps_kwargs: typing.Any) -> str :canonical: vendor_fabric.anthropic.Usage.schema_json :classmethod: .. py:method:: validate(value: typing.Any) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Usage.validate :classmethod: .. py:method:: update_forward_refs(**localns: typing.Any) -> None :canonical: vendor_fabric.anthropic.Usage.update_forward_refs :classmethod: .. py:class:: Message(/, **data: typing.Any) :canonical: vendor_fabric.anthropic.Message Bases: :py:obj:`pydantic.BaseModel` .. autodoc2-docstring:: vendor_fabric.anthropic.Message :parser: myst .. rubric:: Initialization .. autodoc2-docstring:: vendor_fabric.anthropic.Message.__init__ :parser: myst .. py:attribute:: model_config :canonical: vendor_fabric.anthropic.Message.model_config :value: 'ConfigDict(...)' .. autodoc2-docstring:: vendor_fabric.anthropic.Message.model_config :parser: myst .. py:attribute:: id :canonical: vendor_fabric.anthropic.Message.id :type: str :value: 'Field(...)' .. autodoc2-docstring:: vendor_fabric.anthropic.Message.id :parser: myst .. py:attribute:: type :canonical: vendor_fabric.anthropic.Message.type :type: str :value: 'Field(...)' .. autodoc2-docstring:: vendor_fabric.anthropic.Message.type :parser: myst .. py:attribute:: role :canonical: vendor_fabric.anthropic.Message.role :type: vendor_fabric.anthropic.MessageRole :value: 'Field(...)' .. autodoc2-docstring:: vendor_fabric.anthropic.Message.role :parser: myst .. py:attribute:: content :canonical: vendor_fabric.anthropic.Message.content :type: list[vendor_fabric.anthropic.ContentBlock] :value: 'Field(...)' .. autodoc2-docstring:: vendor_fabric.anthropic.Message.content :parser: myst .. py:attribute:: model :canonical: vendor_fabric.anthropic.Message.model :type: str :value: 'Field(...)' .. autodoc2-docstring:: vendor_fabric.anthropic.Message.model :parser: myst .. py:attribute:: stop_reason :canonical: vendor_fabric.anthropic.Message.stop_reason :type: str | None :value: 'Field(...)' .. autodoc2-docstring:: vendor_fabric.anthropic.Message.stop_reason :parser: myst .. py:attribute:: stop_sequence :canonical: vendor_fabric.anthropic.Message.stop_sequence :type: str | None :value: 'Field(...)' .. autodoc2-docstring:: vendor_fabric.anthropic.Message.stop_sequence :parser: myst .. py:attribute:: usage :canonical: vendor_fabric.anthropic.Message.usage :type: vendor_fabric.anthropic.Usage :value: 'Field(...)' .. autodoc2-docstring:: vendor_fabric.anthropic.Message.usage :parser: myst .. py:property:: text :canonical: vendor_fabric.anthropic.Message.text :type: str .. autodoc2-docstring:: vendor_fabric.anthropic.Message.text :parser: myst .. py:method:: model_fields() -> dict[str, pydantic.fields.FieldInfo] :canonical: vendor_fabric.anthropic.Message.model_fields :classmethod: .. py:method:: model_computed_fields() -> dict[str, pydantic.fields.ComputedFieldInfo] :canonical: vendor_fabric.anthropic.Message.model_computed_fields :classmethod: .. py:property:: model_extra :canonical: vendor_fabric.anthropic.Message.model_extra :type: dict[str, typing.Any] | None .. py:property:: model_fields_set :canonical: vendor_fabric.anthropic.Message.model_fields_set :type: set[str] .. py:method:: model_construct(_fields_set: set[str] | None = None, **values: typing.Any) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Message.model_construct :classmethod: .. py:method:: model_copy(*, update: collections.abc.Mapping[str, typing.Any] | None = None, deep: bool = False) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Message.model_copy .. py:method:: model_dump(*, mode: typing.Literal[json, python] | str = 'python', include: pydantic.main.IncEx | None = None, exclude: pydantic.main.IncEx | None = None, context: typing.Any | None = None, by_alias: bool | None = None, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False, exclude_computed_fields: bool = False, round_trip: bool = False, warnings: bool | typing.Literal[none, warn, error] = True, fallback: typing.Callable[[typing.Any], typing.Any] | None = None, serialize_as_any: bool = False, polymorphic_serialization: bool | None = None) -> dict[str, typing.Any] :canonical: vendor_fabric.anthropic.Message.model_dump .. py:method:: model_dump_json(*, indent: int | None = None, ensure_ascii: bool = False, include: pydantic.main.IncEx | None = None, exclude: pydantic.main.IncEx | None = None, context: typing.Any | None = None, by_alias: bool | None = None, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False, exclude_computed_fields: bool = False, round_trip: bool = False, warnings: bool | typing.Literal[none, warn, error] = True, fallback: typing.Callable[[typing.Any], typing.Any] | None = None, serialize_as_any: bool = False, polymorphic_serialization: bool | None = None) -> str :canonical: vendor_fabric.anthropic.Message.model_dump_json .. py:method:: model_json_schema(by_alias: bool = True, ref_template: str = DEFAULT_REF_TEMPLATE, schema_generator: type[pydantic.json_schema.GenerateJsonSchema] = GenerateJsonSchema, mode: pydantic.json_schema.JsonSchemaMode = 'validation', *, union_format: typing.Literal[any_of, primitive_type_array] = 'any_of') -> dict[str, typing.Any] :canonical: vendor_fabric.anthropic.Message.model_json_schema :classmethod: .. py:method:: model_parametrized_name(params: tuple[type[typing.Any], ...]) -> str :canonical: vendor_fabric.anthropic.Message.model_parametrized_name :classmethod: .. py:method:: model_post_init(context: typing.Any, /) -> None :canonical: vendor_fabric.anthropic.Message.model_post_init .. py:method:: model_rebuild(*, force: bool = False, raise_errors: bool = True, _parent_namespace_depth: int = 2, _types_namespace: pydantic._internal._namespace_utils.MappingNamespace | None = None) -> bool | None :canonical: vendor_fabric.anthropic.Message.model_rebuild :classmethod: .. py:method:: model_validate(obj: typing.Any, *, strict: bool | None = None, extra: pydantic.config.ExtraValues | None = None, from_attributes: bool | None = None, context: typing.Any | None = None, by_alias: bool | None = None, by_name: bool | None = None) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Message.model_validate :classmethod: .. py:method:: model_validate_json(json_data: str | bytes | bytearray, *, strict: bool | None = None, extra: pydantic.config.ExtraValues | None = None, context: typing.Any | None = None, by_alias: bool | None = None, by_name: bool | None = None) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Message.model_validate_json :classmethod: .. py:method:: model_validate_strings(obj: typing.Any, *, strict: bool | None = None, extra: pydantic.config.ExtraValues | None = None, context: typing.Any | None = None, by_alias: bool | None = None, by_name: bool | None = None) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Message.model_validate_strings :classmethod: .. py:method:: dict(*, include: pydantic.main.IncEx | None = None, exclude: pydantic.main.IncEx | None = None, by_alias: bool = False, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False) -> typing.Dict[str, typing.Any] :canonical: vendor_fabric.anthropic.Message.dict .. py:method:: json(*, include: pydantic.main.IncEx | None = None, exclude: pydantic.main.IncEx | None = None, by_alias: bool = False, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False, encoder: typing.Callable[[typing.Any], typing.Any] | None = PydanticUndefined, models_as_dict: bool = PydanticUndefined, **dumps_kwargs: typing.Any) -> str :canonical: vendor_fabric.anthropic.Message.json .. py:method:: parse_obj(obj: typing.Any) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Message.parse_obj :classmethod: .. py:method:: parse_raw(b: str | bytes, *, content_type: str | None = None, encoding: str = 'utf8', proto: pydantic.deprecated.parse.Protocol | None = None, allow_pickle: bool = False) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Message.parse_raw :classmethod: .. py:method:: parse_file(path: str | pathlib.Path, *, content_type: str | None = None, encoding: str = 'utf8', proto: pydantic.deprecated.parse.Protocol | None = None, allow_pickle: bool = False) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Message.parse_file :classmethod: .. py:method:: from_orm(obj: typing.Any) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Message.from_orm :classmethod: .. py:method:: construct(_fields_set: set[str] | None = None, **values: typing.Any) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Message.construct :classmethod: .. py:method:: copy(*, include: pydantic._internal._utils.AbstractSetIntStr | pydantic._internal._utils.MappingIntStrAny | None = None, exclude: pydantic._internal._utils.AbstractSetIntStr | pydantic._internal._utils.MappingIntStrAny | None = None, update: typing.Dict[str, typing.Any] | None = None, deep: bool = False) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Message.copy .. py:method:: schema(by_alias: bool = True, ref_template: str = DEFAULT_REF_TEMPLATE) -> typing.Dict[str, typing.Any] :canonical: vendor_fabric.anthropic.Message.schema :classmethod: .. py:method:: schema_json(*, by_alias: bool = True, ref_template: str = DEFAULT_REF_TEMPLATE, **dumps_kwargs: typing.Any) -> str :canonical: vendor_fabric.anthropic.Message.schema_json :classmethod: .. py:method:: validate(value: typing.Any) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Message.validate :classmethod: .. py:method:: update_forward_refs(**localns: typing.Any) -> None :canonical: vendor_fabric.anthropic.Message.update_forward_refs :classmethod: .. py:class:: Model(/, **data: typing.Any) :canonical: vendor_fabric.anthropic.Model Bases: :py:obj:`pydantic.BaseModel` .. autodoc2-docstring:: vendor_fabric.anthropic.Model :parser: myst .. rubric:: Initialization .. autodoc2-docstring:: vendor_fabric.anthropic.Model.__init__ :parser: myst .. py:attribute:: model_config :canonical: vendor_fabric.anthropic.Model.model_config :value: 'ConfigDict(...)' .. autodoc2-docstring:: vendor_fabric.anthropic.Model.model_config :parser: myst .. py:attribute:: id :canonical: vendor_fabric.anthropic.Model.id :type: str :value: 'Field(...)' .. autodoc2-docstring:: vendor_fabric.anthropic.Model.id :parser: myst .. py:attribute:: display_name :canonical: vendor_fabric.anthropic.Model.display_name :type: str :value: 'Field(...)' .. autodoc2-docstring:: vendor_fabric.anthropic.Model.display_name :parser: myst .. py:attribute:: created_at :canonical: vendor_fabric.anthropic.Model.created_at :type: datetime.datetime | None :value: 'Field(...)' .. autodoc2-docstring:: vendor_fabric.anthropic.Model.created_at :parser: myst .. py:method:: model_fields() -> dict[str, pydantic.fields.FieldInfo] :canonical: vendor_fabric.anthropic.Model.model_fields :classmethod: .. py:method:: model_computed_fields() -> dict[str, pydantic.fields.ComputedFieldInfo] :canonical: vendor_fabric.anthropic.Model.model_computed_fields :classmethod: .. py:property:: model_extra :canonical: vendor_fabric.anthropic.Model.model_extra :type: dict[str, typing.Any] | None .. py:property:: model_fields_set :canonical: vendor_fabric.anthropic.Model.model_fields_set :type: set[str] .. py:method:: model_construct(_fields_set: set[str] | None = None, **values: typing.Any) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Model.model_construct :classmethod: .. py:method:: model_copy(*, update: collections.abc.Mapping[str, typing.Any] | None = None, deep: bool = False) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Model.model_copy .. py:method:: model_dump(*, mode: typing.Literal[json, python] | str = 'python', include: pydantic.main.IncEx | None = None, exclude: pydantic.main.IncEx | None = None, context: typing.Any | None = None, by_alias: bool | None = None, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False, exclude_computed_fields: bool = False, round_trip: bool = False, warnings: bool | typing.Literal[none, warn, error] = True, fallback: typing.Callable[[typing.Any], typing.Any] | None = None, serialize_as_any: bool = False, polymorphic_serialization: bool | None = None) -> dict[str, typing.Any] :canonical: vendor_fabric.anthropic.Model.model_dump .. py:method:: model_dump_json(*, indent: int | None = None, ensure_ascii: bool = False, include: pydantic.main.IncEx | None = None, exclude: pydantic.main.IncEx | None = None, context: typing.Any | None = None, by_alias: bool | None = None, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False, exclude_computed_fields: bool = False, round_trip: bool = False, warnings: bool | typing.Literal[none, warn, error] = True, fallback: typing.Callable[[typing.Any], typing.Any] | None = None, serialize_as_any: bool = False, polymorphic_serialization: bool | None = None) -> str :canonical: vendor_fabric.anthropic.Model.model_dump_json .. py:method:: model_json_schema(by_alias: bool = True, ref_template: str = DEFAULT_REF_TEMPLATE, schema_generator: type[pydantic.json_schema.GenerateJsonSchema] = GenerateJsonSchema, mode: pydantic.json_schema.JsonSchemaMode = 'validation', *, union_format: typing.Literal[any_of, primitive_type_array] = 'any_of') -> dict[str, typing.Any] :canonical: vendor_fabric.anthropic.Model.model_json_schema :classmethod: .. py:method:: model_parametrized_name(params: tuple[type[typing.Any], ...]) -> str :canonical: vendor_fabric.anthropic.Model.model_parametrized_name :classmethod: .. py:method:: model_post_init(context: typing.Any, /) -> None :canonical: vendor_fabric.anthropic.Model.model_post_init .. py:method:: model_rebuild(*, force: bool = False, raise_errors: bool = True, _parent_namespace_depth: int = 2, _types_namespace: pydantic._internal._namespace_utils.MappingNamespace | None = None) -> bool | None :canonical: vendor_fabric.anthropic.Model.model_rebuild :classmethod: .. py:method:: model_validate(obj: typing.Any, *, strict: bool | None = None, extra: pydantic.config.ExtraValues | None = None, from_attributes: bool | None = None, context: typing.Any | None = None, by_alias: bool | None = None, by_name: bool | None = None) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Model.model_validate :classmethod: .. py:method:: model_validate_json(json_data: str | bytes | bytearray, *, strict: bool | None = None, extra: pydantic.config.ExtraValues | None = None, context: typing.Any | None = None, by_alias: bool | None = None, by_name: bool | None = None) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Model.model_validate_json :classmethod: .. py:method:: model_validate_strings(obj: typing.Any, *, strict: bool | None = None, extra: pydantic.config.ExtraValues | None = None, context: typing.Any | None = None, by_alias: bool | None = None, by_name: bool | None = None) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Model.model_validate_strings :classmethod: .. py:method:: dict(*, include: pydantic.main.IncEx | None = None, exclude: pydantic.main.IncEx | None = None, by_alias: bool = False, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False) -> typing.Dict[str, typing.Any] :canonical: vendor_fabric.anthropic.Model.dict .. py:method:: json(*, include: pydantic.main.IncEx | None = None, exclude: pydantic.main.IncEx | None = None, by_alias: bool = False, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False, encoder: typing.Callable[[typing.Any], typing.Any] | None = PydanticUndefined, models_as_dict: bool = PydanticUndefined, **dumps_kwargs: typing.Any) -> str :canonical: vendor_fabric.anthropic.Model.json .. py:method:: parse_obj(obj: typing.Any) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Model.parse_obj :classmethod: .. py:method:: parse_raw(b: str | bytes, *, content_type: str | None = None, encoding: str = 'utf8', proto: pydantic.deprecated.parse.Protocol | None = None, allow_pickle: bool = False) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Model.parse_raw :classmethod: .. py:method:: parse_file(path: str | pathlib.Path, *, content_type: str | None = None, encoding: str = 'utf8', proto: pydantic.deprecated.parse.Protocol | None = None, allow_pickle: bool = False) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Model.parse_file :classmethod: .. py:method:: from_orm(obj: typing.Any) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Model.from_orm :classmethod: .. py:method:: construct(_fields_set: set[str] | None = None, **values: typing.Any) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Model.construct :classmethod: .. py:method:: copy(*, include: pydantic._internal._utils.AbstractSetIntStr | pydantic._internal._utils.MappingIntStrAny | None = None, exclude: pydantic._internal._utils.AbstractSetIntStr | pydantic._internal._utils.MappingIntStrAny | None = None, update: typing.Dict[str, typing.Any] | None = None, deep: bool = False) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Model.copy .. py:method:: schema(by_alias: bool = True, ref_template: str = DEFAULT_REF_TEMPLATE) -> typing.Dict[str, typing.Any] :canonical: vendor_fabric.anthropic.Model.schema :classmethod: .. py:method:: schema_json(*, by_alias: bool = True, ref_template: str = DEFAULT_REF_TEMPLATE, **dumps_kwargs: typing.Any) -> str :canonical: vendor_fabric.anthropic.Model.schema_json :classmethod: .. py:method:: validate(value: typing.Any) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.Model.validate :classmethod: .. py:method:: update_forward_refs(**localns: typing.Any) -> None :canonical: vendor_fabric.anthropic.Model.update_forward_refs :classmethod: .. py:class:: AnthropicConnector(api_key: str | None = None, api_version: str = DEFAULT_API_VERSION, timeout: float = DEFAULT_TIMEOUT, logger: extended_data.logging.Logging | None = None, **kwargs: typing.Any) :canonical: vendor_fabric.anthropic.AnthropicConnector Bases: :py:obj:`vendor_fabric.base.ConnectorBase` .. autodoc2-docstring:: vendor_fabric.anthropic.AnthropicConnector :parser: myst .. rubric:: Initialization .. autodoc2-docstring:: vendor_fabric.anthropic.AnthropicConnector.__init__ :parser: myst .. py:attribute:: API_KEY_ENV :canonical: vendor_fabric.anthropic.AnthropicConnector.API_KEY_ENV :value: 'ANTHROPIC_API_KEY' .. autodoc2-docstring:: vendor_fabric.anthropic.AnthropicConnector.API_KEY_ENV :parser: myst .. py:attribute:: BASE_URL :canonical: vendor_fabric.anthropic.AnthropicConnector.BASE_URL :value: None .. autodoc2-docstring:: vendor_fabric.anthropic.AnthropicConnector.BASE_URL :parser: myst .. py:method:: is_available() -> bool :canonical: vendor_fabric.anthropic.AnthropicConnector.is_available :staticmethod: .. autodoc2-docstring:: vendor_fabric.anthropic.AnthropicConnector.is_available :parser: myst .. py:method:: get_available_models() -> extended_data.containers.ExtendedDict :canonical: vendor_fabric.anthropic.AnthropicConnector.get_available_models :staticmethod: .. autodoc2-docstring:: vendor_fabric.anthropic.AnthropicConnector.get_available_models :parser: myst .. py:method:: create_message(model: str, max_tokens: int, messages: list[dict[str, typing.Any]], system: str | None = None, temperature: float | None = None, top_p: float | None = None, top_k: int | None = None, stop_sequences: list[str] | None = None, tools: list[dict[str, typing.Any]] | None = None, tool_choice: dict[str, typing.Any] | None = None, metadata: dict[str, typing.Any] | None = None) -> extended_data.containers.ExtendedDict :canonical: vendor_fabric.anthropic.AnthropicConnector.create_message .. autodoc2-docstring:: vendor_fabric.anthropic.AnthropicConnector.create_message :parser: myst .. py:method:: count_tokens(model: str, messages: list[dict[str, typing.Any]], system: str | None = None, tools: list[dict[str, typing.Any]] | None = None) -> int :canonical: vendor_fabric.anthropic.AnthropicConnector.count_tokens .. autodoc2-docstring:: vendor_fabric.anthropic.AnthropicConnector.count_tokens :parser: myst .. py:method:: list_models() -> extended_data.containers.ExtendedList[extended_data.containers.ExtendedDict] :canonical: vendor_fabric.anthropic.AnthropicConnector.list_models .. autodoc2-docstring:: vendor_fabric.anthropic.AnthropicConnector.list_models :parser: myst .. py:method:: get_model(model_id: str) -> extended_data.containers.ExtendedDict :canonical: vendor_fabric.anthropic.AnthropicConnector.get_model .. autodoc2-docstring:: vendor_fabric.anthropic.AnthropicConnector.get_model :parser: myst .. py:method:: validate_model(model_id: str) -> bool :canonical: vendor_fabric.anthropic.AnthropicConnector.validate_model .. autodoc2-docstring:: vendor_fabric.anthropic.AnthropicConnector.validate_model :parser: myst .. py:method:: get_recommended_model(use_case: str = 'general') -> str :canonical: vendor_fabric.anthropic.AnthropicConnector.get_recommended_model .. autodoc2-docstring:: vendor_fabric.anthropic.AnthropicConnector.get_recommended_model :parser: myst .. py:attribute:: CONNECTOR_CATEGORY :canonical: vendor_fabric.anthropic.AnthropicConnector.CONNECTOR_CATEGORY :type: typing.ClassVar[str] :value: 'external' .. py:attribute:: CONNECTOR_CAPABILITIES :canonical: vendor_fabric.anthropic.AnthropicConnector.CONNECTOR_CAPABILITIES :type: typing.ClassVar[tuple[str, ...]] :value: () .. py:attribute:: TIMEOUT :canonical: vendor_fabric.anthropic.AnthropicConnector.TIMEOUT :type: typing.ClassVar[float] :value: 300.0 .. py:attribute:: MIN_REQUEST_INTERVAL :canonical: vendor_fabric.anthropic.AnthropicConnector.MIN_REQUEST_INTERVAL :type: typing.ClassVar[float] :value: 0.0 .. py:attribute:: MAX_RETRIES :canonical: vendor_fabric.anthropic.AnthropicConnector.MAX_RETRIES :type: typing.ClassVar[int] :value: 5 .. py:property:: api_key :canonical: vendor_fabric.anthropic.AnthropicConnector.api_key :type: str .. py:property:: client :canonical: vendor_fabric.anthropic.AnthropicConnector.client :type: httpx.Client .. py:method:: close() -> None :canonical: vendor_fabric.anthropic.AnthropicConnector.close .. py:method:: request(method: str, endpoint: str, *, headers: dict[str, str] | None = None, **kwargs: typing.Any) -> httpx.Response :canonical: vendor_fabric.anthropic.AnthropicConnector.request .. py:method:: decode_response(response: httpx.Response, *, suffix: str | None = None, as_extended: bool = True) -> typing.Any :canonical: vendor_fabric.anthropic.AnthropicConnector.decode_response .. py:method:: decode_response_file(response: httpx.Response, *, source: str | None = None, suffix: str | None = None, as_extended: bool = True, metadata: collections.abc.Mapping[str, typing.Any] | None = None) -> extended_data.io.DataFile :canonical: vendor_fabric.anthropic.AnthropicConnector.decode_response_file .. py:method:: extend_result(value: typing.Any) -> typing.Any :canonical: vendor_fabric.anthropic.AnthropicConnector.extend_result .. py:method:: request_data(method: str, endpoint: str, *, headers: dict[str, str] | None = None, suffix: str | None = None, as_extended: bool = True, **kwargs: typing.Any) -> typing.Any :canonical: vendor_fabric.anthropic.AnthropicConnector.request_data .. py:method:: request_data_file(method: str, endpoint: str, *, headers: dict[str, str] | None = None, suffix: str | None = None, as_extended: bool = True, **kwargs: typing.Any) -> extended_data.io.DataFile :canonical: vendor_fabric.anthropic.AnthropicConnector.request_data_file .. py:method:: request_workflow(method: str, endpoint: str, *, headers: dict[str, str] | None = None, suffix: str | None = None, as_extended: bool = True, **kwargs: typing.Any) -> extended_data.workflows.DataWorkflow :canonical: vendor_fabric.anthropic.AnthropicConnector.request_workflow .. py:method:: get(endpoint: str, **kwargs: typing.Any) -> httpx.Response :canonical: vendor_fabric.anthropic.AnthropicConnector.get .. py:method:: get_data(endpoint: str, *, suffix: str | None = None, as_extended: bool = True, **kwargs: typing.Any) -> typing.Any :canonical: vendor_fabric.anthropic.AnthropicConnector.get_data .. py:method:: get_workflow(endpoint: str, *, suffix: str | None = None, as_extended: bool = True, **kwargs: typing.Any) -> extended_data.workflows.DataWorkflow :canonical: vendor_fabric.anthropic.AnthropicConnector.get_workflow .. py:method:: post(endpoint: str, **kwargs: typing.Any) -> httpx.Response :canonical: vendor_fabric.anthropic.AnthropicConnector.post .. py:method:: post_data(endpoint: str, *, suffix: str | None = None, as_extended: bool = True, **kwargs: typing.Any) -> typing.Any :canonical: vendor_fabric.anthropic.AnthropicConnector.post_data .. py:method:: post_workflow(endpoint: str, *, suffix: str | None = None, as_extended: bool = True, **kwargs: typing.Any) -> extended_data.workflows.DataWorkflow :canonical: vendor_fabric.anthropic.AnthropicConnector.post_workflow .. py:method:: put(endpoint: str, **kwargs: typing.Any) -> httpx.Response :canonical: vendor_fabric.anthropic.AnthropicConnector.put .. py:method:: put_data(endpoint: str, *, suffix: str | None = None, as_extended: bool = True, **kwargs: typing.Any) -> typing.Any :canonical: vendor_fabric.anthropic.AnthropicConnector.put_data .. py:method:: put_workflow(endpoint: str, *, suffix: str | None = None, as_extended: bool = True, **kwargs: typing.Any) -> extended_data.workflows.DataWorkflow :canonical: vendor_fabric.anthropic.AnthropicConnector.put_workflow .. py:method:: delete(endpoint: str, **kwargs: typing.Any) -> httpx.Response :canonical: vendor_fabric.anthropic.AnthropicConnector.delete .. py:method:: delete_data(endpoint: str, *, suffix: str | None = None, as_extended: bool = True, **kwargs: typing.Any) -> typing.Any :canonical: vendor_fabric.anthropic.AnthropicConnector.delete_data .. py:method:: delete_workflow(endpoint: str, *, suffix: str | None = None, as_extended: bool = True, **kwargs: typing.Any) -> extended_data.workflows.DataWorkflow :canonical: vendor_fabric.anthropic.AnthropicConnector.delete_workflow .. py:method:: patch(endpoint: str, **kwargs: typing.Any) -> httpx.Response :canonical: vendor_fabric.anthropic.AnthropicConnector.patch .. py:method:: patch_data(endpoint: str, *, suffix: str | None = None, as_extended: bool = True, **kwargs: typing.Any) -> typing.Any :canonical: vendor_fabric.anthropic.AnthropicConnector.patch_data .. py:method:: patch_workflow(endpoint: str, *, suffix: str | None = None, as_extended: bool = True, **kwargs: typing.Any) -> extended_data.workflows.DataWorkflow :canonical: vendor_fabric.anthropic.AnthropicConnector.patch_workflow .. py:method:: download(url: str, output_path: str) -> int :canonical: vendor_fabric.anthropic.AnthropicConnector.download .. py:attribute:: vendor_capabilities :canonical: vendor_fabric.anthropic.AnthropicConnector.vendor_capabilities :type: typing.ClassVar[dict[str, vendor_fabric.capabilities.CapabilitySpec]] :value: None .. py:attribute:: vendor_capability_methods :canonical: vendor_fabric.anthropic.AnthropicConnector.vendor_capability_methods :type: typing.ClassVar[dict[str, str]] :value: None .. py:method:: get_input(k: str, default: typing.Any | None = None, required: bool = False, is_bool: bool = False, is_integer: bool = False, is_float: bool = False, is_path: bool = False, is_datetime: bool = False, as_extended: bool = False) -> typing.Any :canonical: vendor_fabric.anthropic.AnthropicConnector.get_input .. py:method:: decode_input(k: str, default: typing.Any | None = None, required: bool = False, decode_from_json: bool = False, decode_from_yaml: bool = False, decode_from_base64: bool = False, allow_none: bool = True, as_extended: bool = False) -> typing.Any :canonical: vendor_fabric.anthropic.AnthropicConnector.decode_input .. py:method:: freeze_inputs() -> extended_data.containers.mappings.ExtendedDict :canonical: vendor_fabric.anthropic.AnthropicConnector.freeze_inputs .. py:method:: thaw_inputs() -> extended_data.containers.mappings.ExtendedDict :canonical: vendor_fabric.anthropic.AnthropicConnector.thaw_inputs .. py:method:: snapshot_inputs(*, frozen: bool = False) -> extended_data.containers.mappings.ExtendedDict :canonical: vendor_fabric.anthropic.AnthropicConnector.snapshot_inputs .. py:method:: replace_inputs(new_inputs: collections.abc.Mapping[str, typing.Any] | None, *, clear_frozen: bool = True) -> extended_data.containers.mappings.ExtendedDict :canonical: vendor_fabric.anthropic.AnthropicConnector.replace_inputs .. py:method:: merge_inputs(new_inputs: collections.abc.Mapping[str, typing.Any] | None) -> extended_data.containers.mappings.ExtendedDict :canonical: vendor_fabric.anthropic.AnthropicConnector.merge_inputs .. py:method:: shift_inputs() -> extended_data.containers.mappings.ExtendedDict :canonical: vendor_fabric.anthropic.AnthropicConnector.shift_inputs