Commit Graph
3192 Commits
Author SHA1 Message Date
Evan Mattson 93df57e635 Python: Bump Python version to 1.3.0 from 1.2.0 for a release. (#7408)
### Motivation and Context

Bump Python version to 1.3.0 from 1.2.0 for a release.

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

### Description

Bump Python version to 1.3.0 from 1.2.0 for a release.

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [X] The code builds clean without any errors or warnings
- [X] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [X] All unit tests pass, and I have added new tests where possible
- [X] I didn't break anyone 😄
python-1.3.0
2024-07-23 10:50:38 -04:00
dependabot[bot] c15e253097 .Net: Bump Handlebars.Net.Helpers from 2.4.1.5 to 2.4.5 in /dotnet (#7271)
Bumps Handlebars.Net.Helpers from 2.4.1.5 to 2.4.5.


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=Handlebars.Net.Helpers&package-manager=nuget&previous-version=2.4.1.5&new-version=2.4.5)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-23 07:02:50 +00:00
Evan Mattson 5f49880d52 Python: Json schema improvements for Union and Optional (#7367)
### Motivation and Context

We have some gaps in how we build the JSON schema for function calling
related to Union and Optional types. There is also some work to do
related to handling `Optional` versus `param | None = None`.

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

### Description

This PR improves the JSON schema building for the Union and Optional
types. It adds additional tests and improves some existing tests.
- Closes #7297 
- Closes #7298

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [X] The code builds clean without any errors or warnings
- [X] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [X] All unit tests pass, and I have added new tests where possible
- [X] I didn't break anyone 😄
dotnet-1.16.0-nightly-240723.1
2024-07-23 04:38:55 +00:00
Mark Wallace 12a877b829 .Net: Sample showing how to transform a plugin (#7206)
### Motivation and Context

Sample showing how to transform a <see cref="KernelPlugin"/> so that not
all parameters are advertised to the LLM
and instead the argument values are provided by the client code.

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [ ] The code builds clean without any errors or warnings
- [ ] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄
2024-07-22 15:26:56 +00:00
Mark Wallace d2f0044e76 .Net: Handle missing operation id in OpenApi spec (#7344)
### Motivation and Context

Closes #7343 
Closes #5598 

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [ ] The code builds clean without any errors or warnings
- [ ] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄
2024-07-22 13:12:44 +00:00
Evan Mattson d8888dc773 Python: Notebook ServiceSettings needs the create method. (#7366)
### Motivation and Context

The notebooks are failing to find the .env file that is located in the
same directory. The ServiceSettings class is missing the `.create()`
method on it, to properly configure the settings from the .env file.

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

### Description

Update the call to `settings = ServiceSettings.create()` so that the
service settings are created properly and reference the .env file
located in the getting_started directory.
- Fixes #7360 

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [X] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [X] All unit tests pass, and I have added new tests where possible
- [X] I didn't break anyone 😄
2024-07-22 09:29:25 -04:00
Evan Mattson 0fda22e8f5 Python: Bump ruff from 0.5.1 to 0.5.2 (#7358)
### Motivation and Context

Based on #7274, bumping ruff to 0.5.2. Required a manual PR as the
pre-commit.yaml file needs an update.

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

### Description

Based on #7274, bumping ruff to 0.5.2. Required a manual PR as the
pre-commit.yaml file needs an update.

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [X] The code builds clean without any errors or warnings
- [X] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [X] All unit tests pass, and I have added new tests where possible
- [X] I didn't break anyone 😄
dotnet-1.16.0-nightly-240722.1 dotnet-1.16.0-nightly-240721.1 dotnet-1.16.0-nightly-240720.1
2024-07-19 14:09:23 +00:00
dependabot[bot]andEvan Mattson 496d31ea18 Python: Bump chromadb from 0.5.3 to 0.5.4 in /python (#7276)
Bumps [chromadb](https://github.com/chroma-core/chroma) from 0.5.3 to
0.5.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/chroma-core/chroma/releases">chromadb's
releases</a>.</em></p>
<blockquote>
<h2>0.5.4</h2>
<p>Version: <code>0.5.4</code>
Git ref: <code>refs/tags/0.5.4</code>
Build Date: <code>2024-07-11T02:31</code>
PIP Package: <code>chroma-0.5.4.tar.gz</code>
Github Container Registry Image:
<code>ghcr.io/chroma-core/chroma:0.5.4</code>
DockerHub Image: <code>chromadb/chroma:0.5.4</code></p>
<h2>What's Changed</h2>
<ul>
<li>[ENH] Timeout log client by <a
href="https://github.com/HammadB"><code>@​HammadB</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2369">chroma-core/chroma#2369</a></li>
<li>[ENH] Timeout for s3 storage by <a
href="https://github.com/HammadB"><code>@​HammadB</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2370">chroma-core/chroma#2370</a></li>
<li>[ENH] Add timeout for sysdb client. Also add interceptor by <a
href="https://github.com/HammadB"><code>@​HammadB</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2371">chroma-core/chroma#2371</a></li>
<li>[ENH] use httpx over requests by <a
href="https://github.com/codetheweb"><code>@​codetheweb</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2336">chroma-core/chroma#2336</a></li>
<li>[BLD] Fix for JS package in GH by <a
href="https://github.com/tazarov"><code>@​tazarov</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2345">chroma-core/chroma#2345</a></li>
<li>[ENH] Enable test_embeddings by <a
href="https://github.com/sanketkedia"><code>@​sanketkedia</code></a> in
<a
href="https://redirect.github.com/chroma-core/chroma/pull/2376">chroma-core/chroma#2376</a></li>
<li>[ENH] Emulate sqlite fts in brute force metadata filtering by <a
href="https://github.com/sanketkedia"><code>@​sanketkedia</code></a> in
<a
href="https://redirect.github.com/chroma-core/chroma/pull/2366">chroma-core/chroma#2366</a></li>
<li>[ENH] handle panics in query service by <a
href="https://github.com/codetheweb"><code>@​codetheweb</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2375">chroma-core/chroma#2375</a></li>
<li>[BUG]: Fix cross version compatibility 0.5.0 or lower with 0.5.1+ by
<a href="https://github.com/tazarov"><code>@​tazarov</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2378">chroma-core/chroma#2378</a></li>
<li>[DOC]: Fix a typo in comment section in chromadb/db/system.py by <a
href="https://github.com/imaffe"><code>@​imaffe</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2386">chroma-core/chroma#2386</a></li>
<li>[ENH] 1965 Split up embedding functions by <a
href="https://github.com/nablabits"><code>@​nablabits</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2034">chroma-core/chroma#2034</a></li>
<li>[ENH] Min compaction size by <a
href="https://github.com/HammadB"><code>@​HammadB</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2346">chroma-core/chroma#2346</a></li>
<li>[ENH] add panics to tracing by <a
href="https://github.com/codetheweb"><code>@​codetheweb</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2382">chroma-core/chroma#2382</a></li>
<li>[BLD] deploy preview of docs in PRs by <a
href="https://github.com/codetheweb"><code>@​codetheweb</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2391">chroma-core/chroma#2391</a></li>
<li>[BLD] remove old artifacts from bleeding release by <a
href="https://github.com/codetheweb"><code>@​codetheweb</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2392">chroma-core/chroma#2392</a></li>
<li>Revert &quot;[ENH] 1965 Split up embedding functions&quot; by <a
href="https://github.com/atroyn"><code>@​atroyn</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2394">chroma-core/chroma#2394</a></li>
<li>[BUG] 1965 Split up embedding functions - Redux by <a
href="https://github.com/atroyn"><code>@​atroyn</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2395">chroma-core/chroma#2395</a></li>
<li>[DOC] fix: add github link and update discord invite link by <a
href="https://github.com/zacatac"><code>@​zacatac</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2387">chroma-core/chroma#2387</a></li>
<li>[BUG] debug proto not included in release by <a
href="https://github.com/codetheweb"><code>@​codetheweb</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2411">chroma-core/chroma#2411</a></li>
<li>[BLD] slight speed up by caching built Rust dependencies by <a
href="https://github.com/codetheweb"><code>@​codetheweb</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2413">chroma-core/chroma#2413</a></li>
<li>[ENH] openapi types for better codegen by <a
href="https://github.com/jeffchuber"><code>@​jeffchuber</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2416">chroma-core/chroma#2416</a></li>
<li>[BLD] use Depot by <a
href="https://github.com/codetheweb"><code>@​codetheweb</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2414">chroma-core/chroma#2414</a></li>
<li>[CLN] Remove test file by <a
href="https://github.com/HammadB"><code>@​HammadB</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2423">chroma-core/chroma#2423</a></li>
<li>[TST] Property Test Generation Fixes by <a
href="https://github.com/HammadB"><code>@​HammadB</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2383">chroma-core/chroma#2383</a></li>
<li>[PERF] Use binary search in positional posting list by <a
href="https://github.com/HammadB"><code>@​HammadB</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2424">chroma-core/chroma#2424</a></li>
<li>[ENH] add image tags to db migration jobs by <a
href="https://github.com/codetheweb"><code>@​codetheweb</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2425">chroma-core/chroma#2425</a></li>
<li>[ENH] Add sync point to test_filtering + fix issues by <a
href="https://github.com/sanketkedia"><code>@​sanketkedia</code></a> in
<a
href="https://redirect.github.com/chroma-core/chroma/pull/2388">chroma-core/chroma#2388</a></li>
<li>[ENH] clean up component channels by <a
href="https://github.com/codetheweb"><code>@​codetheweb</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2429">chroma-core/chroma#2429</a></li>
<li>[ENH] Add collection repr by <a
href="https://github.com/HammadB"><code>@​HammadB</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2433">chroma-core/chroma#2433</a></li>
<li>[BUG] Ensure arrow sizing is correct / 64 byte aligned by <a
href="https://github.com/HammadB"><code>@​HammadB</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2426">chroma-core/chroma#2426</a></li>
<li>[PERF] Use orjson in client by <a
href="https://github.com/HammadB"><code>@​HammadB</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2434">chroma-core/chroma#2434</a></li>
<li>[ENH] add (optional) request/reply semantics for component handlers
by <a href="https://github.com/codetheweb"><code>@​codetheweb</code></a>
in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2428">chroma-core/chroma#2428</a></li>
<li>[ENH] Configurable block size by <a
href="https://github.com/HammadB"><code>@​HammadB</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2439">chroma-core/chroma#2439</a></li>
<li>[ENH] Fix issues + add sync point to test embeddings by <a
href="https://github.com/sanketkedia"><code>@​sanketkedia</code></a> in
<a
href="https://redirect.github.com/chroma-core/chroma/pull/2397">chroma-core/chroma#2397</a></li>
<li>[BUG]: Compatibility for <code>included</code> for 0.5.0 and earlier
by <a href="https://github.com/tazarov"><code>@​tazarov</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2445">chroma-core/chroma#2445</a></li>
<li>[ENH] Read from hnsw cache by <a
href="https://github.com/HammadB"><code>@​HammadB</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2443">chroma-core/chroma#2443</a></li>
<li>[BUG] Log purge off by one by <a
href="https://github.com/HammadB"><code>@​HammadB</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2436">chroma-core/chroma#2436</a></li>
<li>[BUG] fix consumable join handle panicking after clone by <a
href="https://github.com/codetheweb"><code>@​codetheweb</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2448">chroma-core/chroma#2448</a></li>
<li>[ENH] S3 Retry by <a
href="https://github.com/HammadB"><code>@​HammadB</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2457">chroma-core/chroma#2457</a></li>
<li>[ENH] Compaction error replies by <a
href="https://github.com/HammadB"><code>@​HammadB</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2456">chroma-core/chroma#2456</a></li>
<li>[BUG] Allow hnswlinb to single record persist test by <a
href="https://github.com/HammadB"><code>@​HammadB</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/2449">chroma-core/chroma#2449</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/chroma-core/chroma/commit/8b546be5e0da72cb10382ed84347dfa3aad12c4f"><code>8b546be</code></a>
[BUG][TST] Fix thin client package test (<a
href="https://redirect.github.com/chroma-core/chroma/issues/2497">#2497</a>)</li>
<li><a
href="https://github.com/chroma-core/chroma/commit/9c91fe4ef490adfb583332ca9c04f35b805b527c"><code>9c91fe4</code></a>
[RELEASE] Release 0.5.4. Pin hnswlib upgrade. Configuration b/w compat.
(<a
href="https://redirect.github.com/chroma-core/chroma/issues/2496">#2496</a>)</li>
<li><a
href="https://github.com/chroma-core/chroma/commit/27f7d1a764c31875b475607de758efe0cff3a2eb"><code>27f7d1a</code></a>
[ENH] catch panics in task operators (<a
href="https://redirect.github.com/chroma-core/chroma/issues/2450">#2450</a>)</li>
<li><a
href="https://github.com/chroma-core/chroma/commit/5628c6d15570702f539b2e280eed22c82a1c63e0"><code>5628c6d</code></a>
Revert &quot;[RELEASE] Release 0.5.4. Pin hnswlib upgrade. Configuration
b/w compat.&quot;</li>
<li><a
href="https://github.com/chroma-core/chroma/commit/28a4fb440215ed62318f5952536758d0cb5c0b28"><code>28a4fb4</code></a>
[RELEASE] Release 0.5.4. Pin hnswlib upgrade. Configuration b/w
compat.</li>
<li><a
href="https://github.com/chroma-core/chroma/commit/5596dca7cde6e3e6c40634d4847921ba30f5a1c8"><code>5596dca</code></a>
[CLN]: Replacing FastAPI HTTPException with custom ChromaAuthError in
basic/t...</li>
<li><a
href="https://github.com/chroma-core/chroma/commit/27ba303fc93cdaf975c48cbc8ba13cf204fc0ecb"><code>27ba303</code></a>
[CLN] LogRecord TypedDict attr name incorrect (<a
href="https://redirect.github.com/chroma-core/chroma/issues/2486">#2486</a>)</li>
<li><a
href="https://github.com/chroma-core/chroma/commit/b601a3bd50adeb37362c4552248b4a74951a5e4e"><code>b601a3b</code></a>
[BUG] Fix add -&gt; wait for compaction -&gt; delete -&gt; add case (<a
href="https://redirect.github.com/chroma-core/chroma/issues/2474">#2474</a>)</li>
<li><a
href="https://github.com/chroma-core/chroma/commit/8cd96ef1771511dceb20e636ff3c8683944db905"><code>8cd96ef</code></a>
[CHORE] Add parent spans to new spans</li>
<li><a
href="https://github.com/chroma-core/chroma/commit/eb783ff4f98288c39236f579a87794cd58cda6f6"><code>eb783ff</code></a>
[CHORE] Add tracing to blockfile gets (<a
href="https://redirect.github.com/chroma-core/chroma/issues/2485">#2485</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/chroma-core/chroma/compare/0.5.3...0.5.4">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=chromadb&package-manager=pip&previous-version=0.5.3&new-version=0.5.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Evan Mattson <[email protected]>
dotnet-1.16.0-nightly-240719.1
2024-07-18 20:51:39 +00:00
dependabot[bot]andEvan Mattson d3e1105871 Python: Bump transformers from 4.41.2 to 4.42.4 in /python (#7275)
Bumps [transformers](https://github.com/huggingface/transformers) from
4.41.2 to 4.42.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/huggingface/transformers/releases">transformers's
releases</a>.</em></p>
<blockquote>
<h2>Patch release v4.42.4</h2>
<h1>Mostly gemma2 support FA2 softcapping!</h1>
<p>but also fix the sliding window for long context and other typos.</p>
<ul>
<li>[Gemma2] Support FA2 softcapping (<a
href="https://redirect.github.com/huggingface/transformers/issues/31887">#31887</a>)
by <a
href="https://github.com/ArthurZucker"><code>@​ArthurZucker</code></a></li>
<li>[ConvertSlow] make sure the order is preserved for addedtokens (<a
href="https://redirect.github.com/huggingface/transformers/issues/31902">#31902</a>)
by <a
href="https://github.com/ArthurZucker"><code>@​ArthurZucker</code></a></li>
<li>Fixes to alternating SWA layers in Gemma2 (<a
href="https://redirect.github.com/huggingface/transformers/issues/31775">#31775</a>)
by <a
href="https://github.com/turboderp"><code>@​turboderp</code></a></li>
<li>Requires for torch.tensor before casting (<a
href="https://redirect.github.com/huggingface/transformers/issues/31755">#31755</a>)
by <a
href="https://github.com/echarlaix"><code>@​echarlaix</code></a></li>
</ul>
<p>Was off last week could not get this out, thanks all for your
patience 🥳</p>
<h2>Patch release v4.42.3</h2>
<h1>Make sure we have attention softcapping for &quot;eager&quot; GEMMA2
model</h1>
<p>After experimenting, we noticed that for the 27b model mostly,
softcapping is a must. So adding it back (it should have been there, but
an error on my side made it disappear) sorry all! 😭</p>
<ul>
<li>Gemma capping is a must for big models (<a
href="https://redirect.github.com/huggingface/transformers/issues/31698">#31698</a>)</li>
</ul>
<h2>Patch release v4.42.2</h2>
<h1>Patch release</h1>
<p>Thanks to our 2 contributors for their prompt fixing mostly applies
for training and FA2!</p>
<ul>
<li>Fix Gemma2 4d attention mask (<a
href="https://redirect.github.com/huggingface/transformers/issues/31674">#31674</a>)
by <a href="https://github.com/hiyouga"><code>@​hiyouga</code></a></li>
<li>don't zero out the attention_mask when using sliding window with
flash attention (<a
href="https://redirect.github.com/huggingface/transformers/issues/31670">#31670</a>)
by <a
href="https://github.com/winglian"><code>@​winglian</code></a></li>
</ul>
<h2>v4.42.1: Patch release</h2>
<p>Patch release for commit:</p>
<ul>
<li>[HybridCache] Fix get_seq_length method (<a
href="https://redirect.github.com/huggingface/transformers/issues/31661">#31661</a>)</li>
</ul>
<h2>v4.42.0: Gemma 2, RTDETR, InstructBLIP, LLAVa Next, New Model
Adder</h2>
<h2>New model additions</h2>
<h3>Gemma-2</h3>
<p>The Gemma2 model was proposed in <a
href="https://blog.google/technology/developers/Gemma2-open-models/">Gemma2:
Open Models Based on Gemini Technology and Research</a> by Gemma2 Team,
Google.
Gemma2 models are trained on 6T tokens, and released with 2 versions, 2b
and 7b.</p>
<p>The abstract from the paper is the following:</p>
<p><em>This work introduces Gemma2, a new family of open language models
demonstrating strong performance across academic benchmarks for language
understanding, reasoning, and safety. We release two sizes of models (2
billion and 7 billion parameters), and provide both pretrained and
fine-tuned checkpoints. Gemma2 outperforms similarly sized open models
on 11 out of 18 text-based tasks, and we present comprehensive
evaluations of safety and responsibility aspects of the models,
alongside a detailed description of our model development. We believe
the responsible release of LLMs is critical for improving the safety of
frontier models, and for enabling the next wave of LLM
innovations</em></p>
<p><img
src="https://github.com/huggingface/transformers/assets/30755778/798b25f4-485a-4b60-abe5-af612def209b"
alt="image" /></p>
<ul>
<li>Add gemma 2 by <a
href="https://github.com/ArthurZucker"><code>@​ArthurZucker</code></a>
in <a
href="https://redirect.github.com/huggingface/transformers/issues/31659">#31659</a></li>
</ul>
<h3>RTDETR</h3>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/huggingface/transformers/commit/fc35907f95459d7a6c5281dfadd680b6f7b620e3"><code>fc35907</code></a>
v4.42.4</li>
<li><a
href="https://github.com/huggingface/transformers/commit/e002fcd8edc5ee24d9ac71c6790b129fdd94982b"><code>e002fcd</code></a>
[<code>Gemma2</code>] Support FA2 softcapping (<a
href="https://redirect.github.com/huggingface/transformers/issues/31887">#31887</a>)</li>
<li><a
href="https://github.com/huggingface/transformers/commit/2e434169e7b052420be4d5b2aa1d9c8da6ebe3e7"><code>2e43416</code></a>
[<code>ConvertSlow</code>] make sure the order is preserved for
addedtokens (<a
href="https://redirect.github.com/huggingface/transformers/issues/31902">#31902</a>)</li>
<li><a
href="https://github.com/huggingface/transformers/commit/c43fd9d159f7480e62d02f1966ce83385cebea59"><code>c43fd9d</code></a>
Fixes to alternating SWA layers in Gemma2 (<a
href="https://redirect.github.com/huggingface/transformers/issues/31775">#31775</a>)</li>
<li><a
href="https://github.com/huggingface/transformers/commit/0be998bc7f9393c1672a7ff93fbccd15d5c39f3c"><code>0be998b</code></a>
Requires for torch.tensor before casting (<a
href="https://redirect.github.com/huggingface/transformers/issues/31755">#31755</a>)</li>
<li><a
href="https://github.com/huggingface/transformers/commit/b7ee1e80b912c6cdd93b54dd77af061fde151d28"><code>b7ee1e8</code></a>
v4.42.3</li>
<li><a
href="https://github.com/huggingface/transformers/commit/da50b41a272724dba0821d643a44dfebb23e3786"><code>da50b41</code></a>
Gemma capping is a must for big models (<a
href="https://redirect.github.com/huggingface/transformers/issues/31698">#31698</a>)</li>
<li><a
href="https://github.com/huggingface/transformers/commit/086c74efdf98b4e64ac40863ce190144316873a5"><code>086c74e</code></a>
v4.42.2</li>
<li><a
href="https://github.com/huggingface/transformers/commit/869186743da66563d07ea8ea81ebfc88bbf5139c"><code>8691867</code></a>
Fix Gemma2 4d attention mask (<a
href="https://redirect.github.com/huggingface/transformers/issues/31674">#31674</a>)</li>
<li><a
href="https://github.com/huggingface/transformers/commit/7edc9931c52d9de22d2c569122dfc3d927fd280e"><code>7edc993</code></a>
don't zero out the attention_mask when using sliding window with flash
attent...</li>
<li>Additional commits viewable in <a
href="https://github.com/huggingface/transformers/compare/v4.41.2...v4.42.4">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=transformers&package-manager=pip&previous-version=4.41.2&new-version=4.42.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Evan Mattson <[email protected]>
2024-07-18 20:51:31 +00:00
Tao Chen 5c8f4fd622 Python: Add application ID for Azure AI Inference (#7341)
### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->
All Microsoft tools/SDKs that internally use the Azure AI Inference SDK
are required to set a unique application ID, which will be part of the
"use-agent" HTTP request header. This will allow teams to track usage
from that tool/SDK, using service-side telemetry dashboards.

Semantic Kernel's application ID is registered as
"semantic-kernel-python/{version}" according to this
[list](https://microsoft.sharepoint.com/❌/t/AzureMLExperiences-AgentsandCommonInferenceSDKteam/EUVgsgpFtdRLnkhxrdtJ1MIBDMl3wVfoza4c13MI_K6ywg?e=MEpwyo&ovuser=72f988bf-86f1-41af-91ab-2d7cd011db47%2Ctaochen%40microsoft.com&clickparams=eyJBcHBOYW1lIjoiVGVhbXMtRGVza3RvcCIsIkFwcFZlcnNpb24iOiI0OS8yNDA2MjcyNDgwNyJ9).

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->
Add "semantic-kernel-python/{version}" as the application ID where we
use the Azure AI Inference SDK.


### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄
2024-07-18 18:53:42 +00:00
Evan Mattson 6b01468efb Python: fix for kernel function type_object when not using Annotations. Add more unit tests. (#7338)
### Motivation and Context

The current kernel function decorator class parses function params, but
had a miss related to how the underlying param's type is parsed if not
using Annotations.

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

### Description

This PR properly handles the type_object for params that don't using
typing.Annotations.
- Adds unit tests to exercise the code.
- Adds more kernel.py unit tests for near 100% test coverage.
- Adds some planner tests to improve the test coverage.
- Closes #7300 

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [X] The code builds clean without any errors or warnings
- [X] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [X] All unit tests pass, and I have added new tests where possible
- [X] I didn't break anyone 😄
dotnet-1.16.0-nightly-240718.1
2024-07-18 05:12:08 +00:00
Tao ChenandGil LaHaye f0e1e8c524 Python: MaaS sample with MMLU (#7299)
### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->
We would like to create a new sample to show case the power of the new
Model-as-a-service connector in Semantic Kernel.

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->
Add a new sample that shows how to use models available on Azure AI
Studio to benchmark models with open-source datasets.

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄

---------

Co-authored-by: Gil LaHaye <[email protected]>
2024-07-17 19:56:48 +00:00
Dmytro StrukandMark Wallace 5db83a95fd .Net: Added example of Plan generation and execution using Auto Function Calling (#7046)
### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

Resolves: https://github.com/microsoft/semantic-kernel/issues/6745

This PR contains example which shows how to implement plan generation
and execution with Auto Function Calling and enable telemetry, filters
and caching.
`ChatHistory` object is used for plan manipulation and execution.

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄

---------

Co-authored-by: Mark Wallace <[email protected]>
2024-07-17 16:38:24 +00:00
Chris 4d612c3369 .Net Agents - Agent History Propagation (#7216)
### Motivation and Context
<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

Desired behavior:

- Yield function-result when IAutoFunctionInvocationFilter terminates
processing.
- Include all function related content in primary chat history
- Broadcast all function related content to agent channels

### Description
<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

Adds ability for agent channel to signal which messages are:
- Visible to the primary message loop
- Or, silently added to chat history

Normally function related content exists only in the history, but when
IAutoFunctionInvocationFilter terminates processing, the message with
the `FunctionResultContent` is expected to visible in the primary
message loop.

Also fixed where mutated chat-history is captured for streaming case.

### Contribution Checklist
<!-- Before submitting this PR, please make sure: -->

- [X] The code builds clean without any errors or warnings
- [X] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [X] All unit tests pass, and I have added new tests where possible
- [X] I didn't break anyone 😄
2024-07-17 16:22:32 +00:00
Tao Chen 79207ffbbc Python: Migrate to Ollama Python SDK (#7165)
### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->
Currently, the Ollama AI connector uses `aiohttp` sessions to interface
with the local Ollama LLM service. However, we have made the decision to
transition to the official Ollama Python SDK.

Related to: https://github.com/microsoft/semantic-kernel/issues/6841,
https://github.com/microsoft/semantic-kernel/issues/7134

Test coverage report:

![image](https://github.com/microsoft/semantic-kernel/assets/12570346/8d414f71-fc1b-4870-b038-0f7d2985b985)

MyPy warnings: all cleared
### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄
dotnet-1.16.0-nightly-240717.1
2024-07-16 22:38:21 +00:00
Mark Wallace 4bbb694818 Version 1.16.0 (#7301)
### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [ ] The code builds clean without any errors or warnings
- [ ] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄
dotnet-1.16.0
2024-07-16 18:55:48 +01:00
Mark Wallace a335d5564b .Net: Sample showing function calling using NexusRaven (#7256)
### Motivation and Context

Closes #7190 

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [ ] The code builds clean without any errors or warnings
- [ ] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄
2024-07-16 16:51:35 +00:00
dependabot[bot] f2bd4207a5 .Net: Bump Roslynator.CodeAnalysis.Analyzers from 4.12.0 to 4.12.4 in /dotnet (#7277)
Bumps Roslynator.CodeAnalysis.Analyzers from 4.12.0 to 4.12.4.


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=Roslynator.CodeAnalysis.Analyzers&package-manager=nuget&previous-version=4.12.0&new-version=4.12.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-16 12:15:32 +00:00
Mark Wallace 41d106ddd7 .Net: Using OpenAPI description as default plugin description (#7264)
### Motivation and Context

Closes #7209 

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [ ] The code builds clean without any errors or warnings
- [ ] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄
2024-07-16 10:21:49 +00:00
dependabot[bot] 88ec98b0bd .Net: Bump Microsoft.Data.SqlClient from 5.2.0 to 5.2.1 in /dotnet (#7269)
Bumps Microsoft.Data.SqlClient from 5.2.0 to 5.2.1.


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=Microsoft.Data.SqlClient&package-manager=nuget&previous-version=5.2.0&new-version=5.2.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-16 08:48:53 +00:00
dependabot[bot] 921492edec .Net: Bump MongoDB.Driver from 2.25.0 to 2.27.0 in /dotnet (#7270)
Bumps MongoDB.Driver from 2.25.0 to 2.27.0.


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=MongoDB.Driver&package-manager=nuget&previous-version=2.25.0&new-version=2.27.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-16 08:48:47 +00:00
Atiqur Rahman Foyshal 6cfd2ec0ee .Net: DuckDBMemoryStore RemoveBatchAsync method performance improvement (#7252)
### Motivation and Context

To optimize performance by reducing the number of database calls during
batch deletions in DuckDBMemoryStore.

### Description

The updated **RemoveBatchAsync** method now executes a single SQL DELETE
query to remove multiple keys at once, replacing the previous approach
of executing individual delete queries for each key.

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [ ] The code builds clean without any errors or warnings
- [ ] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [ ] All unit tests pass, and existing test is okay for this change
- [ ] I didn't break anyone 😄
dotnet-1.15.1-nightly-240716.1
2024-07-15 16:34:14 +00:00
Atiqur Rahman FoyshalandRoger Barreto b05478d889 .Net: Pinecone RemoveBatchFromNamespaceAsync method performance optimization (#7230)
### Motivation and Context

To optimize the code by reducing the number of HTTP requests needed to
remove a list of keys from a namespace. Instead of multiple HTTP calls,
a single HTTP call will now handle the removal.

### Description

Previously, RemoveBatchFromNamespaceAsync executed multiple HTTP calls
to remove keys. This optimized code reduces the overhead by executing a
single HTTP request to remove the list of keys.

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [ ] The code builds clean without any errors or warnings
- [ ] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄

---------

Co-authored-by: Roger Barreto <[email protected]>
2024-07-15 16:10:16 +00:00
Mark Wallace 21a0049a44 .Net: Create KernelPlugin from Open API without Kernel instance (#7258)
### Motivation and Context

Closes #6426 

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [ ] The code builds clean without any errors or warnings
- [ ] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄
2024-07-15 15:18:46 +00:00
Giorgi DalakishviliandRoger Barreto c81eab7d9c .Net: Use Arrays instead of Lists for DuckDB (#7181)
### Motivation and Context

Fixed-length Arrays have better performance than Lists:
https://duckdb.org/2024/02/13/announcing-duckdb-0100.html#fixed-length-arrays

### Description

Since version 0.10.0 DuckDB supports fixed length Array type that
performs better than List type.

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [X] The code builds clean without any errors or warnings
- [X] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [X] All unit tests pass, and I have added new tests where possible
- [X] I didn't break anyone 😄

---------

Co-authored-by: Roger Barreto <[email protected]>
2024-07-15 08:29:31 +00:00
Tao Chen 7bbdd46b56 Python: Azure AI Inference connector code quality improvement (#7217)
### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->
We have been working on improving code quality and increasing the test
coverage. This PR focuses on the Azure AI Inference connector.

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->
1. Improve test coverage.

![image](https://github.com/user-attachments/assets/2d47318c-3fa5-4884-abe1-128eb3668c98)
2. Cleared all Mypy warnings.

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄
2024-07-15 08:11:01 +00:00
Eduard van Valkenburg e02770d83e Python: added tests for singular and small fix to code coverage (#7223)
### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->
small fix for the text streaming singular method
tests for both
small fix for test coverage

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄
dotnet-1.15.1-nightly-240715.1 dotnet-1.15.1-nightly-240714.1 dotnet-1.15.1-nightly-240713.1
2024-07-12 17:58:44 +00:00
dependabot[bot] edf97c9d97 Java: Bump com.azure:azure-identity from 1.9.1 to 1.12.2 in /java/samples/semantickernel-demos/semantickernel-spring-starter (#7234)
Bumps
[com.azure:azure-identity](https://github.com/Azure/azure-sdk-for-java)
from 1.9.1 to 1.12.2.
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/Azure/azure-sdk-for-java/commit/b7f4d70e93767d9c5a9d1de4b2e025d39954408d"><code>b7f4d70</code></a>
Managed identity bug fix, pick up msal patch</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-java/commit/397b8911b67068930a6ec9e0ce53a16da4e86305"><code>397b891</code></a>
update changelog</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-java/commit/b140165d7e73b0e062c16efc4976446716f5a649"><code>b140165</code></a>
Updating the SDK dependencies for azure-identity-broker</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-java/commit/4d582e0ee16bbaf32626f6267bd476e0c6da79c3"><code>4d582e0</code></a>
Reset changes to the patch version.</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-java/commit/9c33dbdae285e62c416054498db04e5a90289b54"><code>9c33dbd</code></a>
Fix changelog</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-java/commit/1a407e9ad283d97938bc9b395257bd4295086da5"><code>1a407e9</code></a>
Updating the SDK dependencies for azure-identity</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-java/commit/725edfbfdaa349b6fdcbae869996103934840df9"><code>725edfb</code></a>
Reset changes to the patch version.</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-java/commit/c9b7c6efce3d945dbcc18de0c1b38faa564c0721"><code>c9b7c6e</code></a>
Reset changes to the patch version.</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-java/commit/de95691ac637b4ec1e3b78280ec21547cd9e2d52"><code>de95691</code></a>
Set v2 as default for sync receiver, ensure sync receiver does lock
renewal a...</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-java/commit/6bf439c59a7a49d66af63e8c2c6bd18361b2f060"><code>6bf439c</code></a>
Batch Workaround for Deserialization of Long Properties (<a
href="https://redirect.github.com/Azure/azure-sdk-for-java/issues/40301">#40301</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/Azure/azure-sdk-for-java/compare/azure-identity_1.9.1...azure-identity_1.12.2">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.azure:azure-identity&package-manager=maven&previous-version=1.9.1&new-version=1.12.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/microsoft/semantic-kernel/network/alerts).

</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-12 12:56:55 +00:00
dependabot[bot] 66fcd1eb4c Java: Bump com.azure:azure-identity from 1.12.1 to 1.12.2 in /java/semantickernel-bom (#6676)
Bumps
[com.azure:azure-identity](https://github.com/Azure/azure-sdk-for-java)
from 1.12.1 to 1.12.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/Azure/azure-sdk-for-java/releases">com.azure:azure-identity's
releases</a>.</em></p>
<blockquote>
<h2>azure-identity_1.12.2</h2>
<h2>1.12.2 (2024-06-10)</h2>
<h3>Bugs Fixed</h3>
<ul>
<li>Managed identity bug fixes</li>
</ul>
<h3>Other Changes</h3>
<h4>Dependency Updates</h4>
<ul>
<li>Upgraded <code>azure-core</code> from <code>1.49.0</code> to version
<code>1.49.1</code>.</li>
<li>Upgraded <code>azure-core-http-netty</code> from <code>1.15.0</code>
to version <code>1.15.1</code>.</li>
<li>Upgraded <code>msal4j</code> from <code>1.15.0</code> to version
<code>1.15.1</code>.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/Azure/azure-sdk-for-java/commit/b7f4d70e93767d9c5a9d1de4b2e025d39954408d"><code>b7f4d70</code></a>
Managed identity bug fix, pick up msal patch</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-java/commit/397b8911b67068930a6ec9e0ce53a16da4e86305"><code>397b891</code></a>
update changelog</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-java/commit/b140165d7e73b0e062c16efc4976446716f5a649"><code>b140165</code></a>
Updating the SDK dependencies for azure-identity-broker</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-java/commit/4d582e0ee16bbaf32626f6267bd476e0c6da79c3"><code>4d582e0</code></a>
Reset changes to the patch version.</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-java/commit/9c33dbdae285e62c416054498db04e5a90289b54"><code>9c33dbd</code></a>
Fix changelog</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-java/commit/1a407e9ad283d97938bc9b395257bd4295086da5"><code>1a407e9</code></a>
Updating the SDK dependencies for azure-identity</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-java/commit/725edfbfdaa349b6fdcbae869996103934840df9"><code>725edfb</code></a>
Reset changes to the patch version.</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-java/commit/c9b7c6efce3d945dbcc18de0c1b38faa564c0721"><code>c9b7c6e</code></a>
Reset changes to the patch version.</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-java/commit/de95691ac637b4ec1e3b78280ec21547cd9e2d52"><code>de95691</code></a>
Set v2 as default for sync receiver, ensure sync receiver does lock
renewal a...</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-java/commit/6bf439c59a7a49d66af63e8c2c6bd18361b2f060"><code>6bf439c</code></a>
Batch Workaround for Deserialization of Long Properties (<a
href="https://redirect.github.com/Azure/azure-sdk-for-java/issues/40301">#40301</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/Azure/azure-sdk-for-java/compare/azure-identity_1.12.1...azure-identity_1.12.2">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.azure:azure-identity&package-manager=maven&previous-version=1.12.1&new-version=1.12.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/microsoft/semantic-kernel/network/alerts).

</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-12 11:44:38 +00:00
Eduard van Valkenburg ac364e6177 Python: filepath fix (#7228) 2024-07-12 11:27:06 +02:00
Eduard van Valkenburg 69d8354232 Python: Fix test coverage (#7227) 2024-07-12 11:19:23 +02:00
Eduard van Valkenburg 095472d263 Python: fix runs on (#7226) 2024-07-12 11:15:29 +02:00
Eduard van Valkenburg e93627563a Python: updated test coverage run (#7224) 2024-07-12 11:07:55 +02:00
Eduard van Valkenburg cff4c7a8e6 Python: remove continue on error on steps (#7220)
### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [ ] The code builds clean without any errors or warnings
- [ ] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄
2024-07-12 09:37:32 +02:00
Eduard van Valkenburg aa9de1a9ea Python: File id fix (#7219)
### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [ ] The code builds clean without any errors or warnings
- [ ] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄
2024-07-12 09:20:53 +02:00
Chris 6b59077ff7 .Net Agents - Add dynamic logging methods (#7069)
### Motivation and Context
<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

Migrate logging to dynamic logging methods for better maintability and
discoverability (best practice).

### Description
<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

Moved each instance of logging a message into a class specific
log-message file.

### Contribution Checklist
<!-- Before submitting this PR, please make sure: -->

- [X] The code builds clean without any errors or warnings
- [X] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [X] All unit tests pass, and I have added new tests where possible
- [X] I didn't break anyone 😄
dotnet-1.15.1-nightly-240712.1
2024-07-11 23:27:00 +00:00
6944914017 Python : CQ MyPy Fix for MistralAI Connector (#7182)
### Motivation and Context
1. I saw that you are having spikes regarding enabling MyPy
2. On ##7049  i had the Liskov Principle commented
3. In #7144 is saw how you plan to solve this so i decided to adjust the
mistral connector to this

### Description

The PR contains changes to be compliant to MyPy in Mistral AI Connector.
Changes input Parameter for MistralAIChatCompletion from
MistralAIPromptExecutionSettings to PromptExecutionSettings.
Adding Test Cases for MistralAIPromptExecutionSettings and
PromptExecutionSettings.


![image](https://github.com/microsoft/semantic-kernel/assets/23048106/5822896e-17d1-4d68-9348-da6765ac3527)


### Tasks

- [x] Changes input Parameter for Liskov
- [x] Settings conversion
- [x] Adjust TestCases to 100%

### Contribution Checklist
<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄

---------

Co-authored-by: Nico Möller <[email protected]>
Co-authored-by: Evan Mattson <[email protected]>
2024-07-11 22:27:28 +00:00
Eduard van ValkenburgandTao Chen 6a0077c5d3 Python: added singular get methods (#7202)
### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->
Adds singular get_..._content methods to all services, initially
implemented by calling the multi version and passing back the first
result, it therefore does not check on the number of responses
parameter, just provides the interface.

Also add `generate_raw_embeddings` to Embedding Base to allow models to
return different types, while keeping generate_embeddings to return a
numpy array.

Fixes #6926 


### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄

---------

Co-authored-by: Tao Chen <[email protected]>
2024-07-11 20:46:27 +00:00
Evan MattsonandGil LaHaye 904d1f514f Python: Increase unit test coverage (#7211)
### Motivation and Context

We've been working on increasing the test coverage. These tests aren't
specific to the CQ spike, but I noticed that there was covering lacking
for them, and they were "low hanging fruit."

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

### Description

Increasing the test coverage for some classes that have current test
coverage but were missing some line coverage here and there. At this
point in time, the test coverage report is showing 95% covered now.

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [X] The code builds clean without any errors or warnings
- [X] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [X] All unit tests pass, and I have added new tests where possible
- [X] I didn't break anyone 😄

---------

Co-authored-by: Gil LaHaye <[email protected]>
2024-07-11 20:05:06 +00:00
Evan Mattson 240280a37b Python: Introduce the single, non-group chat completion agent (#7116)
### Motivation and Context

Following in the steps of dotnet, we're beginning to add agent support
to Python. For an initial implementation the focus is on non-grouped,
chat completion agents. The first pass is covering a ChatCompletionAgent
that allows the user to define a ChatCompletion Service as part of the
SK Kernel, and then reference that service in an agent implementation.

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

### Description

The PR:
- Adds support for a standard chat completion agent
- Adds the required abstractions to allow the single chat completion
agent to work
- Introduces a new agent concept sample showing how to invoke the agent
for a streaming and non-streaming context.
- Adds unit tests to cover the new code
- Closes #7079 


![image](https://github.com/microsoft/semantic-kernel/assets/35585003/8fa1f248-52b2-41b9-85ac-38ac80a05a68)

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [X] The code builds clean without any errors or warnings
- [X] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [X] All unit tests pass, and I have added new tests where possible
- [X] I didn't break anyone 😄
2024-07-11 19:57:28 +00:00
ChrisandGil LaHaye 434a353414 .Net Agent - Cosmetic Sample Updates (#7199)
### Motivation and Context
<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

Noticed some inconsistencies and opportunities for clarity.

### Description
<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

- Removed usage of `var`
- Replaced incorrect comment for history creation for Step1 & Step2
_(GettingStartedWithAgents)_
- Appending result content to history for Step1 & Step2
_(GettingStartedWithAgents)_
- Replaced incorrect comment for thread creation for Step8
_(GettingStartedWithAgents)_

### Contribution Checklist
<!-- Before submitting this PR, please make sure: -->
- [X] The code builds clean without any errors or warnings
- [X] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [X] All unit tests pass, and I have added new tests where possible
- [X] I didn't break anyone 😄

---------

Co-authored-by: Gil LaHaye <[email protected]>
2024-07-11 17:54:31 +00:00
Eduard van Valkenburg 8a23c2656f Python: add experimental unit tests for python 3.13 (#7204)
### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->
Adds unit test run only for ubuntu for python 3.13, should not fail full
job when it does fail.
Slight improvement of filename handling for the coverage.

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄
2024-07-11 16:30:28 +00:00
Eduard van Valkenburg bdf30a617a Python: allow more options for FunctionCallContent constructor (#7105)
### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->
Fix #6932
Added ability to supply function_name and plugin_name as well as name
(name keeps precedence)
Added ability to supply arguments as a dict, instead of string.
Also ups the test coverage for the contents folder.

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄
2024-07-11 11:52:49 +00:00
Eduard van Valkenburg ea9276759b Python: mypy and tests for OpenAI (#7144)
### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->
Up until this point, we had not had full test coverage for all openai
classes, and mypy type checking was disabled.
These have now both been solved, lots of small fixes for the typing and
a set of new tests for the different parts of the openai suite of
classes have been added.

fixes #7131
fixes #6930

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->
The unit tests for OpenAI all now have multiple ways of creating checked
and tested.
Also actual responses from the openai package are created and used to
test the parsing of those into our classes.

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄
2024-07-11 11:51:18 +00:00
qowlsdn8007andEvan Mattson 90e2237296 Python: Small docstring fix (#7187)
Docstring in add_plugin_from_openai method explain that it's a plugin
from the openapi manifest, not open ai.


https://github.com/microsoft/semantic-kernel/blob/ed463329e7463b068a6669ecf3b7d03d040d1699/python/semantic_kernel/functions/kernel_function_extension.py#L211

### Motivation and Context
I found the add_plugin_from_openapi method because I needed a function
related to the semantic function for calling the API. While reading the
docstring, I saw an open AI description that had nothing to do with the
method, so I am reporting this.

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

### Description
See changes, it's a one-liner 😁

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [ ] The code builds clean without any errors or warnings
- [ ] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄

Co-authored-by: Evan Mattson <[email protected]>
dotnet-1.15.1-nightly-240711.1
2024-07-10 16:33:56 +00:00
SergeyMenshykh 6258138403 .Net: Upgrade the System.Text.Json package to the patched version 8.0.4 (#7185)
### Motivation and Context
The PR upgrades the System.Text.Json package to version 8.0.4 to fix the
vulnerability issue: **error NU1903: Package 'System.Text.Json' 8.0.2
has a known high severity vulnerability,
https://github.com/advisories/GHSA-hh2w-p6rv-4g7w.**
2024-07-10 16:05:31 +00:00
dependabot[bot] 1fb0d957d0 Python: Bump certifi from 2024.2.2 to 2024.7.4 in /python (#7120)
Bumps [certifi](https://github.com/certifi/python-certifi) from 2024.2.2
to 2024.7.4.
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/certifi/python-certifi/commit/bd8153872e9c6fc98f4023df9c2deaffea2fa463"><code>bd81538</code></a>
2024.07.04 (<a
href="https://redirect.github.com/certifi/python-certifi/issues/295">#295</a>)</li>
<li><a
href="https://github.com/certifi/python-certifi/commit/06a2cbf21f345563dde6c28b60e29d57e9b210b3"><code>06a2cbf</code></a>
Bump peter-evans/create-pull-request from 6.0.5 to 6.1.0 (<a
href="https://redirect.github.com/certifi/python-certifi/issues/294">#294</a>)</li>
<li><a
href="https://github.com/certifi/python-certifi/commit/13bba02b72bac97c432c277158bc04b4d2a6bc23"><code>13bba02</code></a>
Bump actions/checkout from 4.1.6 to 4.1.7 (<a
href="https://redirect.github.com/certifi/python-certifi/issues/293">#293</a>)</li>
<li><a
href="https://github.com/certifi/python-certifi/commit/e8abcd0e62b334c164b95d49fcabdc9ecbca0554"><code>e8abcd0</code></a>
Bump pypa/gh-action-pypi-publish from 1.8.14 to 1.9.0 (<a
href="https://redirect.github.com/certifi/python-certifi/issues/292">#292</a>)</li>
<li><a
href="https://github.com/certifi/python-certifi/commit/124f4adf171e15cd9a91a8b6e0325ecc97be8fe1"><code>124f4ad</code></a>
2024.06.02 (<a
href="https://redirect.github.com/certifi/python-certifi/issues/291">#291</a>)</li>
<li><a
href="https://github.com/certifi/python-certifi/commit/c2196ce5d6ee675b27755a19948480a7823e2c6a"><code>c2196ce</code></a>
--- (<a
href="https://redirect.github.com/certifi/python-certifi/issues/290">#290</a>)</li>
<li><a
href="https://github.com/certifi/python-certifi/commit/fefdeec7588ff1c05214b85a552afcad5fdb51b2"><code>fefdeec</code></a>
Bump actions/checkout from 4.1.4 to 4.1.5 (<a
href="https://redirect.github.com/certifi/python-certifi/issues/289">#289</a>)</li>
<li><a
href="https://github.com/certifi/python-certifi/commit/3c5fb1560b826a7f83f1f9750173ff766492c9cf"><code>3c5fb15</code></a>
Bump actions/download-artifact from 4.1.6 to 4.1.7 (<a
href="https://redirect.github.com/certifi/python-certifi/issues/286">#286</a>)</li>
<li><a
href="https://github.com/certifi/python-certifi/commit/4a9569a3eb58db8548536fc16c5c5c7af946a5b1"><code>4a9569a</code></a>
Bump actions/checkout from 4.1.2 to 4.1.4 (<a
href="https://redirect.github.com/certifi/python-certifi/issues/287">#287</a>)</li>
<li><a
href="https://github.com/certifi/python-certifi/commit/1fc808626a895a916b1e4c2b63abae6c5eafdbe3"><code>1fc8086</code></a>
Bump peter-evans/create-pull-request from 6.0.4 to 6.0.5 (<a
href="https://redirect.github.com/certifi/python-certifi/issues/288">#288</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/certifi/python-certifi/compare/2024.02.02...2024.07.04">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=certifi&package-manager=pip&previous-version=2024.2.2&new-version=2024.7.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/microsoft/semantic-kernel/network/alerts).

</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-10 13:24:58 +00:00
dependabot[bot] ed463329e7 Python: Bump mistralai from 0.4.1 to 0.4.2 in /python (#7161)
Bumps mistralai from 0.4.1 to 0.4.2.


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=mistralai&package-manager=pip&previous-version=0.4.1&new-version=0.4.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-10 11:19:57 +00:00
dependabot[bot] c2d4da8565 Python: Bump pydantic-settings from 2.3.3 to 2.3.4 in /python (#7159)
Bumps [pydantic-settings](https://github.com/pydantic/pydantic-settings)
from 2.3.3 to 2.3.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/pydantic/pydantic-settings/releases">pydantic-settings's
releases</a>.</em></p>
<blockquote>
<h2>v2.3.4</h2>
<h2>What's Changed</h2>
<ul>
<li>add in-place reloading in docs by <a
href="https://github.com/nrolin"><code>@​nrolin</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic-settings/pull/316">pydantic/pydantic-settings#316</a></li>
<li>Nested pydantic dataclasses and doc fixes. by <a
href="https://github.com/kschwab"><code>@​kschwab</code></a> in <a
href="https://redirect.github.com/pydantic/pydantic-settings/pull/317">pydantic/pydantic-settings#317</a></li>
<li>Remove leftover docstring causing warning on <code>pydantic</code>
docs build by <a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
in <a
href="https://redirect.github.com/pydantic/pydantic-settings/pull/321">pydantic/pydantic-settings#321</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/nrolin"><code>@​nrolin</code></a> made
their first contribution in <a
href="https://redirect.github.com/pydantic/pydantic-settings/pull/316">pydantic/pydantic-settings#316</a></li>
<li><a
href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a>
made their first contribution in <a
href="https://redirect.github.com/pydantic/pydantic-settings/pull/321">pydantic/pydantic-settings#321</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/pydantic/pydantic-settings/compare/v2.3.3...v2.3.4">https://github.com/pydantic/pydantic-settings/compare/v2.3.3...v2.3.4</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/pydantic/pydantic-settings/commit/fe1f9509da2a1951167666b92fa2083ff2ea35bf"><code>fe1f950</code></a>
Prepare release 2.3.4 (<a
href="https://redirect.github.com/pydantic/pydantic-settings/issues/322">#322</a>)</li>
<li><a
href="https://github.com/pydantic/pydantic-settings/commit/674ebd9cbeb5b9535bcfc5cdabbbe69518b10c52"><code>674ebd9</code></a>
Remove leftover docstring causing warning on <code>pydantic</code> docs
build (<a
href="https://redirect.github.com/pydantic/pydantic-settings/issues/321">#321</a>)</li>
<li><a
href="https://github.com/pydantic/pydantic-settings/commit/7ede0ec18c5678dfa1212e6e8d6d7c6489ac7d78"><code>7ede0ec</code></a>
Nested pydantic dataclasses and doc fixes. (<a
href="https://redirect.github.com/pydantic/pydantic-settings/issues/317">#317</a>)</li>
<li><a
href="https://github.com/pydantic/pydantic-settings/commit/c2d44a7723a00f75ba6790cc654aaa507a7ab123"><code>c2d44a7</code></a>
add in-place reloading in docs (<a
href="https://redirect.github.com/pydantic/pydantic-settings/issues/316">#316</a>)</li>
<li>See full diff in <a
href="https://github.com/pydantic/pydantic-settings/compare/v2.3.3...v2.3.4">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pydantic-settings&package-manager=pip&previous-version=2.3.3&new-version=2.3.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-10 11:00:00 +00:00
Evan Mattson 5e333d31dc Python: Bump ruff to 0.5.1 (#7180)
### Motivation and Context

Per a previous dependabot PR, bump ruff to 0.5.1.

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

### Description

Per a previous dependabot PR, bump ruff to 0.5.1. This required manual
handling due to the pre-commit needing an update.

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [X] The code builds clean without any errors or warnings
- [X] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [X] All unit tests pass, and I have added new tests where possible
- [X] I didn't break anyone 😄
2024-07-10 07:17:53 +00:00