{"id":30108994,"url":"https://github.com/functioncalling/functioncalling-firebaseai","last_synced_at":"2025-08-10T03:20:27.075Z","repository":{"id":256131719,"uuid":"853665766","full_name":"FunctionCalling/FunctionCalling-FirebaseAI","owner":"FunctionCalling","description":"Easy to use your Swift native functions for function calling with FirebaseVertexAI.","archived":false,"fork":false,"pushed_at":"2025-08-06T00:42:28.000Z","size":44,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-06T02:35:04.440Z","etag":null,"topics":["firebase","functioncalling","swift","vertex-ai"],"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}},"created_at":"2024-09-07T07:20:44.000Z","updated_at":"2025-08-06T00:41:28.000Z","dependencies_parsed_at":"2024-09-09T06:44:49.013Z","dependency_job_id":"5c603479-a19e-4652-9580-ed7ffcc9d438","html_url":"https://github.com/FunctionCalling/FunctionCalling-FirebaseAI","commit_stats":null,"previous_names":["fumito-ito/functioncalling-firebasevertexai","functioncalling/functioncalling-firebasevertexai","functioncalling/functioncalling-firebaseai"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/FunctionCalling/FunctionCalling-FirebaseAI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FunctionCalling%2FFunctionCalling-FirebaseAI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FunctionCalling%2FFunctionCalling-FirebaseAI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FunctionCalling%2FFunctionCalling-FirebaseAI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FunctionCalling%2FFunctionCalling-FirebaseAI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FunctionCalling","download_url":"https://codeload.github.com/FunctionCalling/FunctionCalling-FirebaseAI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FunctionCalling%2FFunctionCalling-FirebaseAI/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269669975,"owners_count":24456776,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"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":["firebase","functioncalling","swift","vertex-ai"],"created_at":"2025-08-10T03:20:26.343Z","updated_at":"2025-08-10T03:20:27.066Z","avatar_url":"https://github.com/FunctionCalling.png","language":"Swift","readme":"# FunctionCalling-FirebaseAI\n\nThis library simplifies the integration of the [FunctionCalling](https://github.com/fumito-ito/FunctionCalling) macro into [FirebaseAI](https://github.com/firebase/firebase-ios-sdk/tree/main/FirebaseAI). By using this library, you can directly generate `Tool` objects from Swift native functions, which can then be specified as FunctionCalling when invoking FirebaseAI.\n\n## Usage\n\n```swift\n\nimport FunctionCalling\nimport FunctionCalling_FirebaseAI\nimport FirebaseAI\n\n// MARK: Declare the container and functions for the tools to be called from FunctionCalling.\n\n@FunctionCalling(service: .llamaOrGemini)\nstruct MyFunctionTools {\n    @CallableFunction\n    /// Get the current stock price for a given ticker symbol\n    ///\n    /// - Parameter: The stock ticker symbol, e.g. GOOG 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 FirebaseAI.\n\nlet model = FirebaseAI.firebaseAI().generativeModel(\n    modelName: \"gemini-1.5-flash\",\n    tools: MyFunctionTools().firebaseVertexAITools\n)\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-FirebaseAI\", package: \"FunctionCalling-FirebaseAI\")\n            ]\n        )\n    ],\n    dependencies: [\n        .package(url: \"https://github.com/FunctionCalling/FunctionCalling-FirebaseAI\", 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.\n\nPlease 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-firebaseai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffunctioncalling%2Ffunctioncalling-firebaseai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunctioncalling%2Ffunctioncalling-firebaseai/lists"}