cf8bd23
chore(deps): bump the all group with 3 updates (#128)
Click to expand commit body
Bumps the all group with 3 updates: [github.com/RealAlexandreAI/json-repair](https://github.com/RealAlexandreAI/json-repair), [github.com/kaptinlin/jsonschema](https://github.com/kaptinlin/jsonschema) and [google.golang.org/genai](https://github.com/googleapis/go-genai).
Updates `github.com/RealAlexandreAI/json-repair` from 0.0.14 to 0.0.15
- [Release notes](https://github.com/RealAlexandreAI/json-repair/releases)
- [Changelog](https://github.com/RealAlexandreAI/json-repair/blob/main/CHANGELOG.md)
- [Commits](https://github.com/RealAlexandreAI/json-repair/compare/v0.0.14...v0.0.15)
Updates `github.com/kaptinlin/jsonschema` from 0.6.7 to 0.6.9
- [Commits](https://github.com/kaptinlin/jsonschema/compare/v0.6.7...v0.6.9)
Updates `google.golang.org/genai` from 1.43.0 to 1.44.0
- [Release notes](https://github.com/googleapis/go-genai/releases)
- [Changelog](https://github.com/googleapis/go-genai/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/go-genai/compare/v1.43.0...v1.44.0)
---
updated-dependencies:
- dependency-name: github.com/RealAlexandreAI/json-repair
dependency-version: 0.0.15
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: all
- dependency-name: github.com/kaptinlin/jsonschema
dependency-version: 0.6.9
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: all
- dependency-name: google.golang.org/genai
dependency-version: 1.44.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: all
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot]
and
dependabot[bot]
created
6d9ff0c
chore(deps): bump the all group with 3 updates (#124)
Click to expand commit body
Bumps the all group with 3 updates: [cloud.google.com/go/auth](https://github.com/googleapis/google-cloud-go), [github.com/kaptinlin/jsonschema](https://github.com/kaptinlin/jsonschema) and [google.golang.org/genai](https://github.com/googleapis/go-genai).
Updates `cloud.google.com/go/auth` from 0.18.0 to 0.18.1
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/v0.18.0...auth/v0.18.1)
Updates `github.com/kaptinlin/jsonschema` from 0.6.6 to 0.6.7
- [Commits](https://github.com/kaptinlin/jsonschema/compare/v0.6.6...v0.6.7)
Updates `google.golang.org/genai` from 1.42.0 to 1.43.0
- [Release notes](https://github.com/googleapis/go-genai/releases)
- [Changelog](https://github.com/googleapis/go-genai/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/go-genai/compare/v1.42.0...v1.43.0)
---
updated-dependencies:
- dependency-name: cloud.google.com/go/auth
dependency-version: 0.18.1
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: all
- dependency-name: github.com/kaptinlin/jsonschema
dependency-version: 0.6.7
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: all
- dependency-name: google.golang.org/genai
dependency-version: 1.43.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: all
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot]
and
dependabot[bot]
created
3e8997b
Handle ToolChoiceRequired for OpenAI (#119)
Click to expand commit body
* Fix OpenAI provider to handle ToolChoiceRequired
The OpenAI provider's toOpenAiTools() function was missing a case for fantasy.ToolChoiceRequired, causing it to fall through to the default case and treat "required" as a function name.
This resulted in API errors: 'Invalid value for function_call: no function named "required" was specified in the functions parameter.
OpenAI's API supports tool_choice: "required" (added April 2024), so this fix adds the missing case to properly map ToolChoiceRequired to "required" in the OpenAI API format.
* Add test for ToolChoiceRequired handling
h8mankind
created
60e7ccb
chore(deps): bump the all group with 2 updates (#120)
Click to expand commit body
Bumps the all group with 2 updates: [github.com/go-viper/mapstructure/v2](https://github.com/go-viper/mapstructure) and [google.golang.org/genai](https://github.com/googleapis/go-genai).
Updates `github.com/go-viper/mapstructure/v2` from 2.4.0 to 2.5.0
- [Release notes](https://github.com/go-viper/mapstructure/releases)
- [Changelog](https://github.com/go-viper/mapstructure/blob/main/CHANGELOG.md)
- [Commits](https://github.com/go-viper/mapstructure/compare/v2.4.0...v2.5.0)
Updates `google.golang.org/genai` from 1.41.0 to 1.42.0
- [Release notes](https://github.com/googleapis/go-genai/releases)
- [Changelog](https://github.com/googleapis/go-genai/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/go-genai/compare/v1.41.0...v1.42.0)
---
updated-dependencies:
- dependency-name: github.com/go-viper/mapstructure/v2
dependency-version: 2.5.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: all
- dependency-name: google.golang.org/genai
dependency-version: 1.42.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: all
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* feat: improve tool execution
- makes it so we execute the tool call right after it is available and
than queues other tool calls.
- allow tools to be called in parallel (e.x for the agent tool)
* chore: simplify and rename func
* refactor: simplify code
* chore: change the signature
Kujtim Hoxha
created
e031e04
fix(anthropic): drop empty messages with warning (#79)