{"id":15668293,"url":"https://github.com/devstopfix/ex_aws_bedrock","last_synced_at":"2025-06-12T09:40:45.254Z","repository":{"id":216550127,"uuid":"741626081","full_name":"devstopfix/ex_aws_bedrock","owner":"devstopfix","description":"Elixir library for AWS Bedrock","archived":false,"fork":false,"pushed_at":"2025-06-02T18:31:34.000Z","size":80,"stargazers_count":4,"open_issues_count":12,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-08T09:12:54.284Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devstopfix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-01-10T19:26:14.000Z","updated_at":"2025-06-04T16:04:34.000Z","dependencies_parsed_at":"2025-05-05T22:52:49.567Z","dependency_job_id":"dd090a1e-5206-4b8a-b613-b626c2bf215f","html_url":"https://github.com/devstopfix/ex_aws_bedrock","commit_stats":null,"previous_names":["devstopfix/ex_aws_bedrock"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devstopfix/ex_aws_bedrock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devstopfix%2Fex_aws_bedrock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devstopfix%2Fex_aws_bedrock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devstopfix%2Fex_aws_bedrock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devstopfix%2Fex_aws_bedrock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devstopfix","download_url":"https://codeload.github.com/devstopfix/ex_aws_bedrock/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devstopfix%2Fex_aws_bedrock/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259440208,"owners_count":22857871,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T14:07:58.926Z","updated_at":"2025-06-12T09:40:45.224Z","avatar_url":"https://github.com/devstopfix.png","language":"Elixir","readme":"# ExAws.Bedrock\n\n\u003e The easiest way to build and scale generative AI applications with foundation models\n\u003e -- https://aws.amazon.com/bedrock/\n\nService module for [Elixir AWS](https://github.com/ex-aws/ex_aws).\n\nThis library supports listing and invoking models of text and images and streaming of responses. Agents are not yet supported.\n\n[![ci](https://github.com/devstopfix/ex_aws_bedrock/actions/workflows/ci.yml/badge.svg)](https://github.com/devstopfix/ex_aws_bedrock/actions/workflows/ci.yml)\n[![Hex.pm](https://img.shields.io/hexpm/v/ex_aws_bedrock.svg?style=flat-square)](https://hex.pm/packages/ex_aws_bedrock)\n[![API Docs](https://img.shields.io/badge/api-docs-MediumOrange.svg?style=flat)](https://hexdocs.pm/ex_aws_bedrock/ExAws.Bedrock.html)\n\n## Installation\n\nThe package can be installed by adding `:ex_aws_bedrock` to your list of dependencies in `mix.exs`\nalong with `:ex_aws`, and your preferred HTTP client and JSON codec.\n\n```elixir\ndef deps do\n  [\n    {:ex_aws, \"\u003e= 2.5.1\"},\n    {:ex_aws_bedrock, \"~\u003e 2.5\"},\n    {:hackney, \"~\u003e 1.9\"},\n    {:jason, \"~\u003e 1.1\"},\n    {:poison, \"~\u003e 3.0\"}\n  ]\nend\n```\n\n***NOTE***:\n\n* this requires a minimum `ex_aws` version of 2.5.1.\n* if you wish to stream responses, please include `hackney` and `jason`.\n\n## Unit tests\n\nThe default suite of unit tests verify the requests generated by this library. \nIf you wish to test against AWS with live requests then you need to \nconfigure `ExAws` in the standard way as described in it's README.\n\nFor example you could create an `.env` file:\n\n    export AWS_ACCESS_KEY_ID=\"AK...\"\n    export AWS_SECRET_ACCESS_KEY=\"...\"\n    export AWS_REGION=\"us-east-1\"\n    \nThen set the variables and run the tests with:\n\n    source .env \u0026\u0026 mix test --only aws\n\n## Usage\n\nThe AWS bedrock actions and operations are defined in [ExAws.Bedrock module][mod].\n\nEach model takes their inference parameters as JSON documents which are defined \nin the [model parameters section of the AWS user guide][models]. You can pass \nplain Elixir maps which are then JSON encoded, or define structs which implement\nthe encoder protocol of your chosen JSON codec. This library has an example\nunder [ExAws.Bedrock.Titan.TextModel](lib/ex_aws/bedrock/titan/text_model.ex).\n\nThe Meta models can be invoked with a pure map input:\n\n```elixir\n%{\n    \"prompt\" =\u003e \"What is the best AWS client library for the Elixir programming language?\",\n    \"temperature\" =\u003e 0.5,\n    \"top_p\" =\u003e 0.9,\n    \"max_gen_len\" =\u003e 80\n}\n```\n\n## Example\n\nRun the example script to sample the models and their quality of responses:\n\n    source .env \u0026\u0026 mix run examples.exs    \n\nOutputs:\n\n    Asking meta.llama2-70b-chat-v1 \"Complete this riddle. Ruby is to Yukihiro Matsumoto as Elixir is to\" with temperature=0.8\n\n    Answer: José Valim.\n    Explanation:\n    Ruby is a programming language created by Yukihiro Matsumoto, also known as Matz.\n    Elixir is a programming language created by José Valim, also known as José.\n\n    Therefore, the answer to the riddle is \"José Valim\".\n\n\n    Asking meta.llama2-70b-chat-v1 \"What is the best AWS client library for the Elixir programming language?\" with temperature=0.8\n\n    Answer: The best AWS client library for the Elixir programming language is the `ex_aws` library. It is a lightweight, idiomatic Elixir client for AWS services, providing a simple and intuitive API for interacting with AWS.\n\n## License\n\nThe MIT License (MIT).\n\n[json]: https://hexdocs.pm/jason/Jason.Encoder.html\n[mod]: https://hexdocs.pm/ex_aws_bedrock/ExAws.Bedrock.html\n[models]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevstopfix%2Fex_aws_bedrock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevstopfix%2Fex_aws_bedrock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevstopfix%2Fex_aws_bedrock/lists"}