René's URL Explorer Experiment


Title: Bug: SK runs his self-made function by ignoring the auto-invoke function config · Issue #281 · microsoft/semantic-kernel-java · GitHub

Open Graph Title: Bug: SK runs his self-made function by ignoring the auto-invoke function config · Issue #281 · microsoft/semantic-kernel-java

X Title: Bug: SK runs his self-made function by ignoring the auto-invoke function config · Issue #281 · microsoft/semantic-kernel-java

Description: Describe the bug I set the toolcallbehavior of allowOnlyKernelFunctions as true, and passed the functions to the kernel but the kernel make a functiontoolcall by himself and just invoke it. To Reproduce Steps to reproduce the behavior: L...

Open Graph Description: Describe the bug I set the toolcallbehavior of allowOnlyKernelFunctions as true, and passed the functions to the kernel but the kernel make a functiontoolcall by himself and just invoke it. To Repr...

X Description: Describe the bug I set the toolcallbehavior of allowOnlyKernelFunctions as true, and passed the functions to the kernel but the kernel make a functiontoolcall by himself and just invoke it. To Repr...

Opengraph URL: https://github.com/microsoft/semantic-kernel-java/issues/281

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug: SK runs his self-made function by ignoring the auto-invoke function config","articleBody":"**Describe the bug**\nI set the toolcallbehavior of `allowOnlyKernelFunctions` as `true`, and passed the functions to the kernel\nbut the kernel make a functiontoolcall by himself and just invoke it.\n\n**To Reproduce**\nSteps to reproduce the behavior:\n```java\n         List\u003cKernelFunction\u003c?\u003e\u003e functions = kernel.getPlugins().stream()\n                .map(KernelPlugin::getFunctions)\n                .map(Map::values)\n                .flatMap(Collection::stream)\n                .toList();\n        FunctionResult\u003cString\u003e preResult = kernel\n                .invokeAsync(function)\n                .withToolCallBehavior(ToolCallBehavior.allowOnlyKernelFunctions(true, functions))\n                .withArguments(\n                        KernelFunctionArguments.builder()\n                                .withInput(userInput)\n                                .withVariable(\"metadata\", metadata)\n                                .build())\n                .withResultType(ContextVariableTypes.getGlobalVariableTypeForClass(String.class))\n                .block();    // occur exception here, for invoke a self-make function\n``` \n\n**Expected behavior**\nOnly invoke the passed functions.\n\n**Screenshots**\n\u003cimg width=\"1183\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/45438851-1178-403d-82e2-3848783dc0c8\" /\u003e\n\n**Maven**\n - Version: 3.3.9\n - Dependencies: 1.4.3\n\n**Platform**\n - IDE: IDEA\n - JDK version: 17\n\n**Additional context**\nExcption:  com.azure.core.exception.HttpResponseException: Status code 400, \"{\"error\":{\"message\":\"Invalid 'messages[1].tool_calls[1].function.name': string does not match pattern. Expected a string that matches the pattern '^[a-zA-Z0-9_-]+$'.\",\"type\":\"invalid_request_error\",\"code\":\"invalid_value\",\"param\":\"messages[1].tool_calls[1].function.name\"}}\"\n","author":{"url":"https://github.com/zzzhy","@type":"Person","name":"zzzhy"},"datePublished":"2025-01-02T12:29:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/281/semantic-kernel-java/issues/281"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e10066a8-beba-3fc4-89e4-2e8aec10ca38
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8A64:39430A:1F66B13:2D44E17:6A4CF297
html-safe-nonce9f07818babffedb6358450dc8f7acb8483269f48a23fccae57f9177e468a50ef
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTY0OjM5NDMwQToxRjY2QjEzOjJENDRFMTc6NkE0Q0YyOTciLCJ2aXNpdG9yX2lkIjoiNjc0NDg2NjI4MDM1ODg2NzYwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8b2a2543502b0d44aefd54f92de5e1853d1b670ab95f5dad16016b5308847684
hovercard-subject-tagissue:2765951704
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/semantic-kernel-java/281/issue_layout
twitter:imagehttps://opengraph.githubassets.com/fc090833a6d70d6706a4deb9644c32ddf65c3c2ab16a61e49555bf75cdbd7eea/microsoft/semantic-kernel-java/issues/281
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fc090833a6d70d6706a4deb9644c32ddf65c3c2ab16a61e49555bf75cdbd7eea/microsoft/semantic-kernel-java/issues/281
og:image:altDescribe the bug I set the toolcallbehavior of allowOnlyKernelFunctions as true, and passed the functions to the kernel but the kernel make a functiontoolcall by himself and just invoke it. To Repr...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamezzzhy
hostnamegithub.com
expected-hostnamegithub.com
None299b43bca6e02ad35197ffeba30d2466846d5fb02ab96fbced5b5e6cec589fb8
turbo-cache-controlno-preview
go-importgithub.com/microsoft/semantic-kernel-java git https://github.com/microsoft/semantic-kernel-java.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id814249293
octolytics-dimension-repository_nwomicrosoft/semantic-kernel-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id814249293
octolytics-dimension-repository_network_root_nwomicrosoft/semantic-kernel-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseefec6750a5afcaeaf5dfcf629f404cf98c8371e3
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/semantic-kernel-java/issues/281#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fsemantic-kernel-java%2Fissues%2F281
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fsemantic-kernel-java%2Fissues%2F281
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2Fsemantic-kernel-java
Reloadhttps://github.com/microsoft/semantic-kernel-java/issues/281
Reloadhttps://github.com/microsoft/semantic-kernel-java/issues/281
Reloadhttps://github.com/microsoft/semantic-kernel-java/issues/281
Please reload this pagehttps://github.com/microsoft/semantic-kernel-java/issues/281
microsoft https://github.com/microsoft
semantic-kernel-javahttps://github.com/microsoft/semantic-kernel-java
Notifications https://github.com/login?return_to=%2Fmicrosoft%2Fsemantic-kernel-java
Fork 55 https://github.com/login?return_to=%2Fmicrosoft%2Fsemantic-kernel-java
Star 270 https://github.com/login?return_to=%2Fmicrosoft%2Fsemantic-kernel-java
Code https://github.com/microsoft/semantic-kernel-java
Issues 48 https://github.com/microsoft/semantic-kernel-java/issues
Pull requests 5 https://github.com/microsoft/semantic-kernel-java/pulls
Actions https://github.com/microsoft/semantic-kernel-java/actions
Projects https://github.com/microsoft/semantic-kernel-java/projects
Models https://github.com/microsoft/semantic-kernel-java/models
Security and quality 0 https://github.com/microsoft/semantic-kernel-java/security
Insights https://github.com/microsoft/semantic-kernel-java/pulse
Code https://github.com/microsoft/semantic-kernel-java
Issues https://github.com/microsoft/semantic-kernel-java/issues
Pull requests https://github.com/microsoft/semantic-kernel-java/pulls
Actions https://github.com/microsoft/semantic-kernel-java/actions
Projects https://github.com/microsoft/semantic-kernel-java/projects
Models https://github.com/microsoft/semantic-kernel-java/models
Security and quality https://github.com/microsoft/semantic-kernel-java/security
Insights https://github.com/microsoft/semantic-kernel-java/pulse
Bug: SK runs his self-made function by ignoring the auto-invoke function confighttps://github.com/microsoft/semantic-kernel-java/issues/281#top
bugSomething isn't workinghttps://github.com/microsoft/semantic-kernel-java/issues?q=state%3Aopen%20label%3A%22bug%22
triageNeeds triage from engineering teamhttps://github.com/microsoft/semantic-kernel-java/issues?q=state%3Aopen%20label%3A%22triage%22
https://github.com/zzzhy
zzzhyhttps://github.com/zzzhy
on Jan 2, 2025https://github.com/microsoft/semantic-kernel-java/issues/281#issue-2765951704
https://private-user-images.githubusercontent.com/10076707/399699137-45438851-1178-403d-82e2-3848783dc0c8.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODM0MjgwMzUsIm5iZiI6MTc4MzQyNzczNSwicGF0aCI6Ii8xMDA3NjcwNy8zOTk2OTkxMzctNDU0Mzg4NTEtMTE3OC00MDNkLTgyZTItMzg0ODc4M2RjMGM4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA3MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNzA3VDEyMzUzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTIwNGIyZmIwODBlYjY5MWRjNmMwNGVkZDU3ODY4ZDU2MmUxZGM5ZjkwY2NiNmMxMDRhOGI0YTRhZmY2N2E2YjcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.gppVwXhWswxaxMw2xsIGYq4pWOybUauQb_rbHnG73d4
bugSomething isn't workinghttps://github.com/microsoft/semantic-kernel-java/issues?q=state%3Aopen%20label%3A%22bug%22
triageNeeds triage from engineering teamhttps://github.com/microsoft/semantic-kernel-java/issues?q=state%3Aopen%20label%3A%22triage%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.