Repository navigation
docs: Agent workflow - #513
Conversation
| private Step error() { | ||
| return step("error") | ||
| .call(() -> null) | ||
| .andThen(() -> effects().end()); |
There was a problem hiding this comment.
I think we should take the opportunity to see if can reduce boilerplate in workfows. For example, it would be nice with a step without a call.
(is above null result allowed?)
There was a problem hiding this comment.
Most likely, it will fail on serialization.
There was a problem hiding this comment.
ok, I'll change to Done
Would be nice with
.noCall()
.andThen(() -> ...)
There was a problem hiding this comment.
I would use done() for now.
| === Drive the agents from a workflow | ||
| == Drive the Agent from a workflow | ||
|
|
||
| Agents make external calls to the AI model and possibly other services, and therefore it is important to have solid error handling and durable execution steps when calling agents. Agents should therefore be called from a xref:workflows.adoc[Workflow]. |
There was a problem hiding this comment.
Agents should therefore be called from a -> I would change that to sth less strict, e.g. A good example is calling agents from a Workflow
There was a problem hiding this comment.
ok, adjusted, and added some more: 8fb5193
| [source,java] | ||
| ---- | ||
| .timeout(Duration.ofSeconds(120)) | ||
| include::example$doc-snippets/src/main/java/com/example/application/ActivityAgentManager.java[tag=all] |
There was a problem hiding this comment.
You can exclude the
private static final Logger logger = LoggerFactory.getLogger(ActivityAgentManager.class);
from the snippet.
No description provided.