Skip to content

Approach to save structured information for each interaction with user | SK Python Implementation #8409

Closed Answered by eavanvalkenburg
nehalakhani asked this question in Q&A
Discussion options

You must be logged in to vote

I did a super quick and dirty implementation of this:

import asyncio
from typing import Annotated

from semantic_kernel.connectors.ai.function_choice_behavior import FunctionChoiceBehavior
from semantic_kernel.connectors.ai.open_ai.services.open_ai_chat_completion import OpenAIChatCompletion
from semantic_kernel.connectors.ai.prompt_execution_settings import PromptExecutionSettings
from semantic_kernel.contents.chat_history import ChatHistory
from semantic_kernel.functions import kernel_function
from semantic_kernel.kernel import Kernel

kernel = Kernel()

system_prompt = """
You are a chatbot that guides the user through gathering information to fill out a form.
The fields are name, emai…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@nehalakhani
Comment options

Answer selected by nehalakhani
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants