flue-eve

React

import { useEveAgent } from 'flue-eve/react';

useEveAgent options

OptionTypeDefaultDescription
agentstring'assistant'Agent name
apistring'/eve/v1'API base URL

Hook return value

PropertyDescription
messagesArray of Eve message events
send(text)Send a user message
stop()Stop the current turn
readyTrue when the agent is ready for input
inputHITL input request (if any)
errorLast error, if any