Commit Graph
75 Commits
Author SHA1 Message Date
John Oliver 2110556d55 Java: Update redis and spring-starter versions (#4998)
### 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-02-13 18:44:04 +00:00
John Oliver d35757fa09 Fix java build 2024-02-13 14:24:07 +00:00
SandraAhlgrimm 1b2e2fbd50 Squashed commit of the following:
commit 538774d7c9
Merge: 1a5f7447c dcd7e1424
Author: Sandra Ahlgrimm <[email protected]>
Date:   Thu Feb 8 08:50:21 2024 +0100

    Merge branch 'main' into update-modelid

commit 1a5f7447ca
Merge: 699eec828 7e431953e
Author: Sandra Ahlgrimm <[email protected]>
Date:   Wed Feb 7 17:35:02 2024 +0100

    Merge branch 'main' into update-modelid

commit 699eec828d
Merge: 60cf261f8 7e431953e
Author: Sandra Ahlgrimm <[email protected]>
Date:   Wed Feb 7 10:30:34 2024 +0100

    Merge branch 'main' into update-modelid

commit 60cf261f8a
Merge: 2f726c2ab 3a7d3bdc5
Author: Sandra Ahlgrimm <[email protected]>
Date:   Wed Feb 7 10:22:51 2024 +0100

    Merge branch 'main' into update-modelid

commit 2f726c2ab0
Merge: 5bdbbd6e4 59508cab6
Author: John Oliver <[email protected]>
Date:   Tue Feb 6 13:02:30 2024 +0000

    Merge branch 'main' into update-modelid

commit 5bdbbd6e49
Merge: ffcf68cb6 eed51932f
Author: Sandra Ahlgrimm <[email protected]>
Date:   Fri Feb 2 22:44:25 2024 +0100

    Merge branch 'main' into update-modelid

commit ffcf68cb6d
Merge: 3a34f5db1 52e317a79
Author: Sandra Ahlgrimm <[email protected]>
Date:   Fri Feb 2 12:15:47 2024 +0100

    Merge branch 'main' into update-modelid

commit 3a34f5db19
Merge: 7933961f6 e58295123
Author: SandraAhlgrimm <[email protected]>
Date:   Fri Feb 2 12:15:13 2024 +0100

    Merge remote-tracking branch 'origin/update-modelid' into update-modelid

commit 7933961f6c
Author: SandraAhlgrimm <[email protected]>
Date:   Fri Feb 2 12:14:50 2024 +0100

    make Deployment Name optional and set modelid with default as requested in review

commit b74843e02e
Author: SandraAhlgrimm <[email protected]>
Date:   Fri Feb 2 12:13:39 2024 +0100

    make Deployment Name optional and set modelid with default as requested in review

commit e582951234
Merge: f7f1664b0 5953beb8b
Author: Sandra Ahlgrimm <[email protected]>
Date:   Fri Jan 26 22:56:33 2024 +0100

    Merge branch 'main' into update-modelid

commit f7f1664b04
Author: SandraAhlgrimm <[email protected]>
Date:   Fri Jan 26 22:51:38 2024 +0100

    spring boot starter gets tested with samples

commit be6cf95226
Author: SandraAhlgrimm <[email protected]>
Date:   Fri Jan 26 12:46:23 2024 +0100

    Need to use JDK 11 to build for JDK 8

commit 1af0f61ddd
Author: SandraAhlgrimm <[email protected]>
Date:   Fri Jan 26 12:43:16 2024 +0100

    Need to use JDK 11 to build for JDK 8

commit 5bebe6c43f
Author: SandraAhlgrimm <[email protected]>
Date:   Fri Jan 26 12:24:46 2024 +0100

    move starter to example package

commit 2f8a8398f4
Author: SandraAhlgrimm <[email protected]>
Date:   Fri Jan 26 10:14:20 2024 +0100

    switch back to jdk 8 and 17 as required by PM

commit 9fdf375fb3
Merge: 1e66ccb52 038ca4554
Author: SandraAhlgrimm <[email protected]>
Date:   Fri Jan 26 10:08:32 2024 +0100

    Merge branch 'main' of https://github.com/SandraAhlgrimm/semantic-kernel into update-modelid

    # Conflicts:
    #	.github/workflows/java-build.yml

commit 038ca4554a
Merge: 21d161af6 e0ccee0e1
Author: Sandra Ahlgrimm <[email protected]>
Date:   Fri Jan 26 10:03:52 2024 +0100

    Merge branch 'microsoft:main' into main

commit 21d161af6c
Merge: a40202602 44453276a
Author: Sandra Ahlgrimm <[email protected]>
Date:   Fri Jan 26 09:31:59 2024 +0100

    Merge pull request #1 from bbenz/main

    bbenz Update java-build.yml

commit a40202602d
Author: Sandra Ahlgrimm <[email protected]>
Date:   Fri Jan 26 09:31:19 2024 +0100

    Update java-build.yml

commit 44453276a9
Author: Brian Benz <[email protected]>
Date:   Thu Jan 25 16:07:29 2024 -0800

    bbenz Update java-build.yml

    Set JDK to 11 or 17

commit 1e66ccb528
Author: Sandra Ahlgrimm <[email protected]>
Date:   Thu Jan 25 21:32:07 2024 +0100

    Update java-build.yml

    update workflow as @bbenz suggested

commit b69342a813
Merge: 79627be66 e0ccee0e1
Author: Sandra Ahlgrimm <[email protected]>
Date:   Thu Jan 25 21:30:42 2024 +0100

    Merge branch 'microsoft:main' into update-modelid

commit 79627be66a
Author: SandraAhlgrimm <[email protected]>
Date:   Thu Jan 25 18:22:56 2024 +0100

    jdk 17 for spring boot starter

commit 14e17ad953
Merge: 4570ad288 00fbab2d3
Author: SandraAhlgrimm <[email protected]>
Date:   Wed Jan 24 21:41:47 2024 +0100

    Merge remote-tracking branch 'origin/update-modelid' into update-modelid

commit 4570ad2889
Author: SandraAhlgrimm <[email protected]>
Date:   Wed Jan 24 21:41:14 2024 +0100

    cleaned up and ready for PR

commit 00fbab2d3e
Author: Sandra Ahlgrimm <[email protected]>
Date:   Wed Jan 24 21:39:57 2024 +0100

    Update java-integration-tests.yml

commit f5baf9ee28
Merge: f76a4b014 f95925622
Author: Sandra Ahlgrimm <[email protected]>
Date:   Wed Jan 24 21:33:28 2024 +0100

    Merge branch 'microsoft:main' into update-modelid

commit f76a4b014d
Merge: a8cf41e5e e4874bb79
Author: Sandra Ahlgrimm <[email protected]>
Date:   Mon Jan 22 16:08:03 2024 +0100

    Merge branch 'microsoft:main' into update-modelid

commit a8cf41e5ef
Author: SandraAhlgrimm <[email protected]>
Date:   Mon Jan 22 16:03:22 2024 +0100

    cleaned up and ready for PR

commit 8d3d26afc8
Author: SandraAhlgrimm <[email protected]>
Date:   Thu Jan 18 22:43:40 2024 +0100

    maven still needs a cleanup

commit f811bc3edf
Merge: 43b0a7f7c c87e45e52
Author: SandraAhlgrimm <[email protected]>
Date:   Wed Jan 17 22:27:39 2024 +0100

    Merge remote-tracking branch 'origin/update-modelid' into update-modelid

commit c87e45e52f
Merge: 355eb6876 fe23d4161
Author: Sandra Ahlgrimm <[email protected]>
Date:   Wed Jan 17 22:20:29 2024 +0100

    Merge branch 'microsoft:main' into update-modelid

commit 43b0a7f7cf
Author: SandraAhlgrimm <[email protected]>
Date:   Wed Jan 17 22:19:31 2024 +0100

    add tests, maven needs a cleanup

commit 355eb68765
Merge: 4277528ea f9bef6375
Author: Sandra Ahlgrimm <[email protected]>
Date:   Tue Jan 16 15:40:51 2024 +0100

    Merge branch 'microsoft:main' into update-modelid

commit 4277528ea0
Merge: f2cab027e 9db47e561
Author: Sandra Ahlgrimm <[email protected]>
Date:   Mon Jan 8 14:22:56 2024 +0100

    Merge branch 'microsoft:main' into update-modelid

commit f2cab027ec
Author: SandraAhlgrimm <[email protected]>
Date:   Fri Jan 5 16:58:21 2024 +0100

    update maven dependencies, test needs to be finished

commit ec31872597
Author: SandraAhlgrimm <[email protected]>
Date:   Fri Jan 5 15:52:49 2024 +0100

    add spring boot starter

commit ff87caa4ed
Merge: c1ccfe087 11369bf28
Author: SandraAhlgrimm <[email protected]>
Date:   Fri Jan 5 13:16:21 2024 +0100

    Merge remote-tracking branch 'origin/update-modelid' into update-modelid

commit c1ccfe0874
Author: SandraAhlgrimm <[email protected]>
Date:   Fri Jan 5 13:16:08 2024 +0100

    add spring boot starter

commit 11369bf289
Merge: ac73cb85e 833a2d7b8
Author: Sandra Ahlgrimm <[email protected]>
Date:   Fri Jan 5 13:13:37 2024 +0100

    Merge branch 'microsoft:main' into update-modelid

commit ac73cb85ee
Merge: c1f4ef8fb 4b9dbed30
Author: SandraAhlgrimm <[email protected]>
Date:   Fri Jan 5 13:11:50 2024 +0100

    Merge branch 'update-modelid' of https://github.com/SandraAhlgrimm/semantic-kernel into update-modelid

commit c1f4ef8fb1
Author: SandraAhlgrimm <[email protected]>
Date:   Fri Jan 5 13:06:20 2024 +0100

    add spring boot starter

commit 4b9dbed305
Merge: 9da9b386a aa62b14d7
Author: John Oliver <[email protected]>
Date:   Thu Jan 4 12:46:38 2024 +0000

    Merge branch 'main' into update-modelid

commit 53d4bf7f50
Author: SandraAhlgrimm <[email protected]>
Date:   Wed Jan 3 20:14:32 2024 +0100

    add spring boot starter

commit 9da9b386ad
Merge: a3782cfc6 79908b0cf
Author: Sandra Ahlgrimm <[email protected]>
Date:   Wed Jan 3 13:24:58 2024 +0100

    Merge branch 'main' into update-modelid

commit a3782cfc6f
Merge: a6930990b 240a2cbea
Author: Sandra Ahlgrimm <[email protected]>
Date:   Fri Dec 22 11:40:14 2023 +0100

    Merge branch 'microsoft:main' into update-modelid

commit a6930990be
Author: SandraAhlgrimm <[email protected]>
Date:   Fri Dec 22 11:38:59 2023 +0100

    update modelid to the available davinci-002 on Azure Open AI
2024-02-13 14:21:28 +00:00
Joe BraleyandGitHub 6aec1a10b6 Java sk dev (#4053)
### 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 😄

---------

Co-authored-by: GitHub <[email protected]>
2023-12-06 17:45:43 +00:00
Joe BraleyandGitHub ebf6cd1588 Java: [maven-release-plugin] prepare release java-0.2.13-alpha (#4051)
### 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 😄

Co-authored-by: GitHub <[email protected]>
2023-12-06 17:41:58 +00:00
Joe BraleyandGitHub 8ce0f5b5b7 Java: prepare next development iteration (#4048)
### 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 😄

---------

Co-authored-by: GitHub <[email protected]>
2023-12-06 17:30:23 +00:00
Joe BraleyandGitHub 7780d5ffba Java: [maven-release-plugin] prepare release java-0.2.12-alpha (#4047)
### 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 😄

Co-authored-by: GitHub <[email protected]>
2023-12-06 17:20:43 +00:00
John OliverandRajasekar Elango aff5552977 Java: Apply ADR 008 (#3366)
Closed #2417 in favour of this PR which also includes @relango s
commits.

This PR updates for full support for ADR 008
(https://github.com/microsoft/semantic-kernel/blob/main/docs/decisions/0008-support-generic-llm-request-settings.md),
which is the ADR in this area.

This PR does the following:
- Updates the code to support ADR 008.
- Apply code formatting needed on these
- If you dont want do do this PR via your branch I can PR it directly
and close this PR.

Now you can add serviceId and model to invocation, i.e:
``
Mono<SKContext> result = function.invokeAsync("time travel to dinosaur
age",
        SKBuilders
            .completionRequestSettings()
            .serviceId("text-davinci-003")
            .build());
``
function config, i.e:

```
    var function = kernel.
        getSemanticFunctionBuilder()
        .withPromptTemplate("tell a joke about {{$input}}")
        .withRequestSettings(
            SKBuilders.completionRequestSettings()
                .temperature(0.4)
                .topP(1)
                .maxTokens(100)
                .serviceId("text-davinci-003")
                .build())
        .build();
```

Or config file

```
{
  "schema": 1,
  "description": "Sample plugin with a model and service id",
  "type": "completion",
  "completion": {
    "max_tokens": 150,
    "temperature": 0.9,
    "top_p": 0.0,
    "presence_penalty": 0.6,
    "frequency_penalty": 0.0,
    "service_id": "text-davinci-003",
    "model_id": "text-davinci-003"
  }
}
```

---------

Co-authored-by: Rajasekar Elango <[email protected]>
2023-11-28 14:16:45 +00:00
Joe BraleyandGitHub 299bde90bd Java: Prepare for next development iteration (#3442)
### 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 😄

---------

Co-authored-by: GitHub <[email protected]>
2023-11-09 19:46:46 +00:00
Joe BraleyandGitHub b50ebb46da Java: [maven-release-plugin] prepare release java-0.2.11-alpha (#3441)
### 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 😄

Co-authored-by: GitHub <[email protected]>
2023-11-09 19:42:03 +00:00
Joe BraleyandGitHub 46e4d87db6 Java: prepare for next development iteration (#3439)
### 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 😄

---------

Co-authored-by: GitHub <[email protected]>
2023-11-09 19:27:08 +00:00
Joe BraleyandGitHub 172cc2bb27 Java: [maven-release-plugin] prepare release java-0.2.10-alpha (#3438)
### 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 😄

Co-authored-by: GitHub <[email protected]>
2023-11-09 19:15:04 +00:00
John Oliver 211a40d54f Java: Apply code formatting rules and remove unneeded dependencies (#3420)
### 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 😄
2023-11-08 18:35:03 +00:00
Linda NavaretteandLinda Navarette 6fa1d6ec56 Java: optionally allow/disallow missing functions in sequential planner (#3384)
### 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.
-->

This is to resolve #2855 -- when using the java `SequentialPlanner`, the
planner will return a plan with missing skills. This enables a
configuration setting to allow/disallow the missing functions.

### Description

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

This PR adds
* The configuration setting to allow/disallow missing functions. I set
the default to false (throw on a missing function), technically a
breaking change from what was previously implemented. Given this branch
is still prerelease, I decided that's the better default configuration,
and the breaking change should be okay.
* The logic in the plan parser; to throw when
`allowMissingFunctions=true` and the plan has a missing function.
* Unit tests for the SequentialPlanner that bring its tests to parity
with the other Planner unit tests and test the desired behavior for this
setting when it is on or off.

### Contribution Checklist

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

- [x] 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
- [x] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄

---------

Co-authored-by: Linda Navarette <[email protected]>
2023-11-08 13:24:06 +00:00
John Oliver 3f894eada1 Java: Allow Semantic Kernel to obtain credentials via Managed identity and azure cli. Fix some tests (#3298)
### 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 😄
2023-11-07 12:00:42 +00:00
John Oliver 599fe8d5ed Java: Set Useragent for connectors. Extract settings classes to their own module (#3320)
- Set Useragent for connectors to Semantic-Kernel-Java. 
- Extract settings classes to their own optional module
2023-11-01 16:41:46 +00:00
David Grieve 11eba8f697 Java: Docs (#3299)
### 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 😄
2023-10-27 14:10:10 +01:00
John Oliver 82aeeab94d Java: Fix typos in Java (#3253)
### 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 😄
2023-10-23 15:17:51 +01:00
Milder Hernandez d16b3ebf51 Java: Update azure-ai-openai and azure-core-http-netty version (#3211)
### 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.
-->

Update azure-core dependencies.

### 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 😄
2023-10-17 14:20:04 +01:00
Vikram Seshadri b8b6c55e63 Java: Fix documentation to reflect correct enum value for OPEN_AI. (#3114)
Fix pom.xml file to reflect correct class path for example in
sample-code README.

### 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: -->

- [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 😄
2023-10-10 14:39:50 -07:00
Joe Braley 2e8035e8d8 Java sk dev (#2930) 2023-09-21 20:06:54 +01:00
Joe BraleyandGitHub 95a2ff9a3a Java: [maven-release-plugin] prepare release java-0.2.9-alpha (#2929)
### 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 😄

Co-authored-by: GitHub <[email protected]>
2023-09-21 19:57:18 +01:00
David Grieve 0ede0eb534 Java: 2636 net java azurecognitivesearchmemory should implement memorystore (#2861)
### Motivation and Context
Fixes issue #2636 

<!-- 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 😄
2023-09-19 17:37:25 -04:00
John Oliver bfe0d957fc Java - Fix several small bugs (#2791)
- Use resource loading util method
- Apply formatting
- Fix sql connector generating embedding even if db entry already exits
- Fixes settings not being loaded from environment variables correctly
2023-09-13 12:26:32 +01:00
David Grieve b8df05a1e1 Java: 2514 java minrelevancescore on memory api should be float (#2633)
### 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.
-->

Fixes #2514 

### Description
Change relevance/minRelevance in API from double to float

<!-- 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 😄
2023-09-11 18:25:01 +01:00
John Oliver 7e755c6252 Java: Add stepwise planner (#2753)
### 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 😄
2023-09-11 13:34:54 +01:00
7a9268d29e Java: Add JDBC and Postgres connectors (#2489)
### 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.
-->

Adding JDBC connector from SQLite and Postgres connector overriding
what's necessary.

Also adding new integration tests for the JDBC and Postgres memory
connectors under
`api-test/integration-tests/src/test/java/com/microsoft/semantickernel/connectors`.

### 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 😄

---------

Co-authored-by: Luigi Montoya <[email protected]>
Co-authored-by: joe-braley <[email protected]>
Co-authored-by: Luigi96 <[email protected]>
Co-authored-by: Mark Wallace <[email protected]>
Co-authored-by: John Oliver <[email protected]>
Co-authored-by: David Grieve <[email protected]>
2023-09-07 18:37:14 +01:00
David Grieve beeed7b7a7 Java: Builder naming consistency (#2575)
### 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.
-->
Issue #2437 and issue #2346

### Description

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

- Changed setXyz methods to withXyz
- Changed SKBuilders methods to match the builder return type
- Organized BuilderSingleton to make it easier to maintain, IMHO
- Consistency between Buildable's

### 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 😄
2023-08-29 11:04:33 -04:00
Joe BraleyandGitHub 0021b002fc Java: Prepare java dev iteration (#2427)
### 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 😄

---------

Co-authored-by: GitHub <[email protected]>
2023-08-11 18:21:24 +01:00
Joe BraleyandGitHub 8c3178447b Java: prepare release java-0.2.8-alpha (#2426)
### 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 😄

Co-authored-by: GitHub <[email protected]>
2023-08-11 17:32:34 +01:00
John Oliver 8497b4d0b6 Java: Apply proposed builder refactor to make them more consistent (#2270)
Apply proposed Builder updates to make them more consistent
2023-08-10 13:11:53 -04:00
David Grieve f8f1c34837 Java: Integrate EmbeddingVector into Embedding (#2328)
### 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.
-->
EmbeddingVector and the vectoroperations package are down in
semantickernel-core, which makes it impossible to use the cosine
similarity function needed to calculate the similarity between
embeddings.
### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->
EmbeddingVector was integrated into Embedding and the vectoroperations
package was refactored into a VectorOperations class which is in the
same package as Embedding. Now, one can do:
`embedding.cosineSimilarity(otherEmbedding)` instead of having to new up
an EmbeddingVector from embedding.getVector().

### 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 😄
2023-08-09 15:42:19 +01:00
David Grieve 4c9dd713cf Java: Example25_ReadOnlyMemoryStore (#2273)
### 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 😄
2023-08-08 09:41:15 -04:00
David Grieve 4c749866cc Java: EmbeddingGeneration does not need generic number type (#2304)
### 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.
-->
Embedding was refactored to be a Float instead of a ? extends Number.
EmbeddingGeneration was overlooked.

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->
Remove `? extends Number` from declaration of EmbeddingGeneration
 
### 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 😄
2023-08-03 15:29:05 +01:00
John Oliver cdffd723ed Java: move cognitive search to its own module (#2267)
### 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 😄
2023-08-01 11:18:20 -04:00
Martijn Verburg 0600c1e790 Java: Update dependencies (#2261)
### Motivation and Context

Keep our security and stability baseline for dependencies as high as
possible.

### Description

Maven POM changes mainly, removing a bunch of warnings and updating
dependencies

### 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 😄
2023-08-01 14:19:37 +01:00
David Grieve f2e7ddef9e Copilot Chat: Java: add Example15_MemorySkill (#1999)
### 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.
-->
Adding Example15_MemorySkill
### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->
Added
java/samples/sample-code/src/main/java/com/microsoft/semantickernel/syntaxexamples/Example15_MemorySkill.java
Made changes necessary to get the example to work. 

### 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#dev-scripts)
raises no violations
- [X] All unit tests pass, and I have added new tests where possible
- [X] I didn't break anyone 😄
2023-08-01 13:09:39 +01:00
John Oliver 9d06492a28 Java: Add more setting options to context variable builder (#2203)
- Allows users to set values in the ContextVariable builder
- Allows constructing a mutable ContextVariable
2023-07-31 16:11:42 -04:00
John Oliver 1137b05533 Java: Support streaming on ChatCompletions (#2244)
### 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 😄
2023-07-31 16:10:24 -04:00
John Oliver 92121c9ec3 Java: Improve config discovery and misconfiguration reporting (#2115)
Move much of the logic of OpenAI config loading from samples to
connectors

Fixes #2093
2023-07-31 11:12:00 -04:00
John Oliver 5a9a70aee9 Java: Fix broken build in BlogAnnouncement example (#2202) 2023-07-27 13:08:46 -04:00
John Oliver 7f1f54de0d Java: Move service adders from kernelconfig to Kernel Builder (#2097)
### 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#dev-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄
2023-07-27 13:13:41 +01:00
Bruno Borges 96209e1071 Java: Blog sample (#2073) 2023-07-26 18:43:21 +01:00
Bruno Borges 7cd541280e Java: Move samples to new package; Add jbang support (#2026)
- Fixes the template of `conf.properties` to not have quotes;
- Moves samples to a sub package to avoid conflict when running `jbang`
- Adds `jbang` support to execute the samples from command line
2023-07-25 10:07:32 +01:00
John Oliver 6a19e161ef Java: Apply directory structure adr (#2048)
Apply java directory structure as defined in #1547
2023-07-25 10:00:10 +01:00
John Oliver 8957884e5d Java: Allow functions to be loaded from the classpath (#2080)
Allow importing skills from the classpath using `getResourceAsStream` so
that people can embed skills inside their jar
2023-07-21 09:02:50 +01:00
John Oliver aad3ba90d0 Java: Allow ChatCompletion to be used as a TextCompletion (#2043)
If a TextCompletion is not available for that operation, the kernel will
use a ChatCompletion service if available.

Fixes #2020
2023-07-21 08:56:57 +01:00
f3c407ece0 Java: Prepare development iteration (#2092)
### 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#dev-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄

---------

Co-authored-by: GitHub <[email protected]>
Co-authored-by: joebraley <[email protected]>
2023-07-20 16:00:38 +01:00
Joe BraleyandGitHub 51a6ea1c1f Java: prepare release java-0.2.7-alpha (#2091)
### 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#dev-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄

Co-authored-by: GitHub <[email protected]>
2023-07-20 15:45:17 +01:00
John Oliver ef175ea756 Java: Fix a number of planner issues, add blog example (#2077)
- Fix the planner overwriting the result even when it is being bound to
a variable.
- Fix incorrect handling of default values for planner functions 
- Add example for blog post

### 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#dev-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄
2023-07-20 08:22:57 +01:00