{"id":22021910,"url":"https://github.com/functioncalling/functioncalling-awsbedrock","last_synced_at":"2026-04-17T07:33:08.660Z","repository":{"id":259461005,"uuid":"858256799","full_name":"FunctionCalling/FunctionCalling-AWSBedrock","owner":"FunctionCalling","description":"Easy to use your Swift native functions for function calling with AWSBedrock.","archived":false,"fork":false,"pushed_at":"2026-04-16T22:15:41.000Z","size":187,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-17T00:28:57.133Z","etag":null,"topics":["aws","aws-bedrock","functioncalling","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FunctionCalling.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-09-16T15:27:00.000Z","updated_at":"2026-03-12T09:45:09.000Z","dependencies_parsed_at":"2024-10-25T17:28:24.065Z","dependency_job_id":"55e96e82-2a5f-429f-9062-19636fa0d365","html_url":"https://github.com/FunctionCalling/FunctionCalling-AWSBedrock","commit_stats":null,"previous_names":["functioncalling/functioncalling-awsbedrock"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/FunctionCalling/FunctionCalling-AWSBedrock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FunctionCalling%2FFunctionCalling-AWSBedrock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FunctionCalling%2FFunctionCalling-AWSBedrock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FunctionCalling%2FFunctionCalling-AWSBedrock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FunctionCalling%2FFunctionCalling-AWSBedrock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FunctionCalling","download_url":"https://codeload.github.com/FunctionCalling/FunctionCalling-AWSBedrock/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FunctionCalling%2FFunctionCalling-AWSBedrock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31920129,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["aws","aws-bedrock","functioncalling","swift"],"created_at":"2024-11-30T06:16:17.303Z","updated_at":"2026-04-17T07:33:08.653Z","avatar_url":"https://github.com/FunctionCalling.png","language":"Swift","readme":"# FunctionCalling-AWSBedrock\n\nThis library simplifies the integration of the [FunctionCalling](https://github.com/fumito-ito/FunctionCalling) macro into [AWSBedrock](https://github.com/awslabs/aws-sdk-swift). By using this library, you can directly generate `Tool` objects from Swift native functions, which can then be specified as FunctionCalling when invoking Bedrock.\n\n## Usage\n\n```swift\n\nimport FunctionCalling\nimport FunctionCalling_AWSBedrock\nimport AWSBedrockRuntime\n\n// MARK: Declare the container and functions for the tools to be called from FunctionCalling.\n\n@FunctionCalling(service: .claude)\nstruct MyFunctionTools {\n    @CallableFunction\n    /// Get the current stock price for a given ticker symbol\n    ///\n    /// - Parameter: The stock ticker symbol, e.g. AMZN for Google Inc.\n    func getStockPrice(ticker: String) async throws -\u003e String {\n        // code to return stock price of passed ticker\n    }\n}\n\n// MARK: You can directly pass the tools generated from objects to the model in Bedrock.\n\nlet client = try BedrockRuntimeClient(region: \"us-east-1\")\nlet input = ConverseInput(toolConfig: .init(tools: MyFunctionTools().bedrockAllTools))\ntry await client.converse(input: input)\n```\n\n## Installation\n\n### Swift Package Manager\n\n```\nlet package = Package(\n    name: \"MyPackage\",\n    products: [...],\n    targets: [\n        .target(\n            \"YouAppModule\",\n            dependencies: [\n                .product(name: \"FunctionCalling-AWSBedrock\", package: \"FunctionCalling-AWSBedrock\")\n            ]\n        )\n    ],\n    dependencies: [\n        .package(url: \"https://github.com/FunctionCalling/FunctionCalling-AWSBedrock\", from: \"0.1.0\")\n    ]\n)\n```\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.\n\n## License\n\nThe MIT License\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunctioncalling%2Ffunctioncalling-awsbedrock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffunctioncalling%2Ffunctioncalling-awsbedrock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunctioncalling%2Ffunctioncalling-awsbedrock/lists"}