update
This commit is contained in:
+13
-5
@@ -103,13 +103,21 @@ prepareContext(state) == deepcopy(state.messages)
|
||||
# return msgs
|
||||
# end
|
||||
```
|
||||
"""
|
||||
function prepareContext(state::agentState)::Vector{agentMessage}
|
||||
messages = deepcopy(state.messages) # messages that will be send to LLM
|
||||
""" #WORKING
|
||||
function prepareContext(state::agentState)::agentContext
|
||||
|
||||
#TODO adjust/modify and inject additional context into messages
|
||||
#TODO filter tools from state.tools based on user intend in user message and tool description
|
||||
filteredTools = state.tools
|
||||
|
||||
return messages
|
||||
#TODO add tools to current system prompt
|
||||
preparedSystemPrompt = state.systemPrompt
|
||||
|
||||
#TODO add system prompt, adjust/modify and inject additional context into messages
|
||||
preparedMessages = deepcopy(state.messages) # messages that will be send to LLM
|
||||
|
||||
agentCtx = agentContext(preparedSystemPrompt, preparedMessages, filteredTools)
|
||||
|
||||
return agentCtx
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user