-
Notifications
You must be signed in to change notification settings - Fork 142
Add a python version of the AI agents creation page (API) #2228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@reebhub there are build errors - could you check them? |
|
@poissoncorp just warnings that non C# page headers will be ignored because they are taken from the switcher doc in the root folder. fixed. |
| ### Set chat trimming configuration | ||
|
|
||
| To [summarize the conversation](../../../ai-integration/ai-agents/overview#define-a-chat-trimming-configuration), create an `AiAgentChatTrimmingConfiguration` instance, | ||
| use it to configure your trimming strategy, and set the agent's `ChatTrimming` property |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| use it to configure your trimming strategy, and set the agent's `ChatTrimming` property | |
| use it to configure your trimming strategy, and set the agent's `chat_trimming` property |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
|
||
| * **Example** | ||
| Set a query tool that runs when the agent is started and retrieves all the orders sent everywhere. | ||
| ```csharp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ```csharp | |
| ```python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the sample below isn't written in Python
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was the sample missing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you reported that AiAgentToolQueryOptions can't be found in the python repository and you intend to create it, so the "initial-context queries" section is currently commented out and the content untouched, including the type (csharp, not python), text and sample.
| runs before the conversation starts, earlier than the first communication with the LLM, and the LLM will have no opportunity to fill the parameters with values. | ||
| * An initial-context query **is** allowed to use agent parameters, whose values are provided by the user even before the query is executed. | ||
|
|
||
| * You can use the `Options.AllowModelQueries` property to Enable or Disable a query tool . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * You can use the `Options.AllowModelQueries` property to Enable or Disable a query tool . | |
| * You can use the `options.allow_model_queries` property to Enable or Disable a query tool . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also related to initial-context queries, waiting for the missing AiAgentToolQueryOptions
| * When a query tool is enabled, the LLM can freely trigger its execution. | ||
| * When a query tool is disabled, the LLM cannot trigger its execution. | ||
| * If a query tool is set as an initial-context query, it will be executed when the conversation | ||
| starts even if disabled using `AllowModelQueries`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| starts even if disabled using `AllowModelQueries`. | |
| starts even if disabled using `allow_model_queries`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no sample here yet
|
|
||
| * **Syntax** | ||
| ```csharp | ||
| public class AiAgentToolQueryOptions : IDynamicJson |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also here - was the Python sample missing for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, you didn't find it in the python repository, there's no sample for this section
related issue:
RDoc-3620