:py:mod:`vendor_fabric.anthropic.tools` ======================================= .. py:module:: vendor_fabric.anthropic.tools .. autodoc2-docstring:: vendor_fabric.anthropic.tools :parser: myst :allowtitles: Module Contents --------------- Classes ~~~~~~~ .. list-table:: :class: autosummary longtable :align: left * - :py:obj:`CreateMessageSchema ` - .. autodoc2-docstring:: vendor_fabric.anthropic.tools.CreateMessageSchema :parser: myst :summary: * - :py:obj:`ListModelsSchema ` - .. autodoc2-docstring:: vendor_fabric.anthropic.tools.ListModelsSchema :parser: myst :summary: Functions ~~~~~~~~~ .. list-table:: :class: autosummary longtable :align: left * - :py:obj:`anthropic_create_message ` - .. autodoc2-docstring:: vendor_fabric.anthropic.tools.anthropic_create_message :parser: myst :summary: * - :py:obj:`anthropic_list_models ` - .. autodoc2-docstring:: vendor_fabric.anthropic.tools.anthropic_list_models :parser: myst :summary: Data ~~~~ .. list-table:: :class: autosummary longtable :align: left * - :py:obj:`TOOL_DEFINITIONS ` - .. autodoc2-docstring:: vendor_fabric.anthropic.tools.TOOL_DEFINITIONS :parser: myst :summary: API ~~~ .. py:class:: CreateMessageSchema(/, **data: typing.Any) :canonical: vendor_fabric.anthropic.tools.CreateMessageSchema Bases: :py:obj:`pydantic.BaseModel` .. autodoc2-docstring:: vendor_fabric.anthropic.tools.CreateMessageSchema :parser: myst .. rubric:: Initialization .. autodoc2-docstring:: vendor_fabric.anthropic.tools.CreateMessageSchema.__init__ :parser: myst .. py:attribute:: model :canonical: vendor_fabric.anthropic.tools.CreateMessageSchema.model :type: str :value: 'Field(...)' .. autodoc2-docstring:: vendor_fabric.anthropic.tools.CreateMessageSchema.model :parser: myst .. py:attribute:: max_tokens :canonical: vendor_fabric.anthropic.tools.CreateMessageSchema.max_tokens :type: int :value: 'Field(...)' .. autodoc2-docstring:: vendor_fabric.anthropic.tools.CreateMessageSchema.max_tokens :parser: myst .. py:attribute:: prompt :canonical: vendor_fabric.anthropic.tools.CreateMessageSchema.prompt :type: str :value: 'Field(...)' .. autodoc2-docstring:: vendor_fabric.anthropic.tools.CreateMessageSchema.prompt :parser: myst .. py:attribute:: system :canonical: vendor_fabric.anthropic.tools.CreateMessageSchema.system :type: str | None :value: 'Field(...)' .. autodoc2-docstring:: vendor_fabric.anthropic.tools.CreateMessageSchema.system :parser: myst .. py:attribute:: model_config :canonical: vendor_fabric.anthropic.tools.CreateMessageSchema.model_config :type: typing.ClassVar[pydantic.config.ConfigDict] :value: 'ConfigDict(...)' .. py:method:: model_fields() -> dict[str, pydantic.fields.FieldInfo] :canonical: vendor_fabric.anthropic.tools.CreateMessageSchema.model_fields :classmethod: .. py:method:: model_computed_fields() -> dict[str, pydantic.fields.ComputedFieldInfo] :canonical: vendor_fabric.anthropic.tools.CreateMessageSchema.model_computed_fields :classmethod: .. py:property:: model_extra :canonical: vendor_fabric.anthropic.tools.CreateMessageSchema.model_extra :type: dict[str, typing.Any] | None .. py:property:: model_fields_set :canonical: vendor_fabric.anthropic.tools.CreateMessageSchema.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.tools.CreateMessageSchema.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.tools.CreateMessageSchema.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.tools.CreateMessageSchema.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.tools.CreateMessageSchema.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.tools.CreateMessageSchema.model_json_schema :classmethod: .. py:method:: model_parametrized_name(params: tuple[type[typing.Any], ...]) -> str :canonical: vendor_fabric.anthropic.tools.CreateMessageSchema.model_parametrized_name :classmethod: .. py:method:: model_post_init(context: typing.Any, /) -> None :canonical: vendor_fabric.anthropic.tools.CreateMessageSchema.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.tools.CreateMessageSchema.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.tools.CreateMessageSchema.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.tools.CreateMessageSchema.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.tools.CreateMessageSchema.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.tools.CreateMessageSchema.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.tools.CreateMessageSchema.json .. py:method:: parse_obj(obj: typing.Any) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.tools.CreateMessageSchema.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.tools.CreateMessageSchema.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.tools.CreateMessageSchema.parse_file :classmethod: .. py:method:: from_orm(obj: typing.Any) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.tools.CreateMessageSchema.from_orm :classmethod: .. py:method:: construct(_fields_set: set[str] | None = None, **values: typing.Any) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.tools.CreateMessageSchema.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.tools.CreateMessageSchema.copy .. py:method:: schema(by_alias: bool = True, ref_template: str = DEFAULT_REF_TEMPLATE) -> typing.Dict[str, typing.Any] :canonical: vendor_fabric.anthropic.tools.CreateMessageSchema.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.tools.CreateMessageSchema.schema_json :classmethod: .. py:method:: validate(value: typing.Any) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.tools.CreateMessageSchema.validate :classmethod: .. py:method:: update_forward_refs(**localns: typing.Any) -> None :canonical: vendor_fabric.anthropic.tools.CreateMessageSchema.update_forward_refs :classmethod: .. py:class:: ListModelsSchema(/, **data: typing.Any) :canonical: vendor_fabric.anthropic.tools.ListModelsSchema Bases: :py:obj:`pydantic.BaseModel` .. autodoc2-docstring:: vendor_fabric.anthropic.tools.ListModelsSchema :parser: myst .. rubric:: Initialization .. autodoc2-docstring:: vendor_fabric.anthropic.tools.ListModelsSchema.__init__ :parser: myst .. py:attribute:: model_config :canonical: vendor_fabric.anthropic.tools.ListModelsSchema.model_config :type: typing.ClassVar[pydantic.config.ConfigDict] :value: 'ConfigDict(...)' .. py:method:: model_fields() -> dict[str, pydantic.fields.FieldInfo] :canonical: vendor_fabric.anthropic.tools.ListModelsSchema.model_fields :classmethod: .. py:method:: model_computed_fields() -> dict[str, pydantic.fields.ComputedFieldInfo] :canonical: vendor_fabric.anthropic.tools.ListModelsSchema.model_computed_fields :classmethod: .. py:property:: model_extra :canonical: vendor_fabric.anthropic.tools.ListModelsSchema.model_extra :type: dict[str, typing.Any] | None .. py:property:: model_fields_set :canonical: vendor_fabric.anthropic.tools.ListModelsSchema.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.tools.ListModelsSchema.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.tools.ListModelsSchema.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.tools.ListModelsSchema.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.tools.ListModelsSchema.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.tools.ListModelsSchema.model_json_schema :classmethod: .. py:method:: model_parametrized_name(params: tuple[type[typing.Any], ...]) -> str :canonical: vendor_fabric.anthropic.tools.ListModelsSchema.model_parametrized_name :classmethod: .. py:method:: model_post_init(context: typing.Any, /) -> None :canonical: vendor_fabric.anthropic.tools.ListModelsSchema.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.tools.ListModelsSchema.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.tools.ListModelsSchema.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.tools.ListModelsSchema.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.tools.ListModelsSchema.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.tools.ListModelsSchema.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.tools.ListModelsSchema.json .. py:method:: parse_obj(obj: typing.Any) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.tools.ListModelsSchema.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.tools.ListModelsSchema.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.tools.ListModelsSchema.parse_file :classmethod: .. py:method:: from_orm(obj: typing.Any) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.tools.ListModelsSchema.from_orm :classmethod: .. py:method:: construct(_fields_set: set[str] | None = None, **values: typing.Any) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.tools.ListModelsSchema.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.tools.ListModelsSchema.copy .. py:method:: schema(by_alias: bool = True, ref_template: str = DEFAULT_REF_TEMPLATE) -> typing.Dict[str, typing.Any] :canonical: vendor_fabric.anthropic.tools.ListModelsSchema.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.tools.ListModelsSchema.schema_json :classmethod: .. py:method:: validate(value: typing.Any) -> typing_extensions.Self :canonical: vendor_fabric.anthropic.tools.ListModelsSchema.validate :classmethod: .. py:method:: update_forward_refs(**localns: typing.Any) -> None :canonical: vendor_fabric.anthropic.tools.ListModelsSchema.update_forward_refs :classmethod: .. py:function:: anthropic_create_message(model: str, prompt: str, max_tokens: int = 1024, system: str | None = None) -> extended_data.containers.ExtendedDict :canonical: vendor_fabric.anthropic.tools.anthropic_create_message .. autodoc2-docstring:: vendor_fabric.anthropic.tools.anthropic_create_message :parser: myst .. py:function:: anthropic_list_models() -> extended_data.containers.ExtendedList[extended_data.containers.ExtendedDict] :canonical: vendor_fabric.anthropic.tools.anthropic_list_models .. autodoc2-docstring:: vendor_fabric.anthropic.tools.anthropic_list_models :parser: myst .. py:data:: TOOL_DEFINITIONS :canonical: vendor_fabric.anthropic.tools.TOOL_DEFINITIONS :value: None .. autodoc2-docstring:: vendor_fabric.anthropic.tools.TOOL_DEFINITIONS :parser: myst